{"id":18308,"date":"2023-11-20T06:30:31","date_gmt":"2023-11-20T06:30:31","guid":{"rendered":"https:\/\/www.prepbytes.com\/blog\/?p=18308"},"modified":"2023-11-20T06:30:31","modified_gmt":"2023-11-20T06:30:31","slug":"piping-in-unix-or-linux","status":"publish","type":"post","link":"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/","title":{"rendered":"Piping in Unix or Linux"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1700460199109-6.jpg\" alt=\"\" \/><br \/>\nUnix and Linux, two of the most widely used operating systems in the world, owe much of their power and versatility to the elegant concept of piping. Piping is a fundamental feature that allows users to connect commands, creating a seamless flow of data from one process to another. It is a cornerstone of the command-line interface, enabling users to harness the full potential of their systems. In this article, we will explore the concept of piping, its syntax, and the myriad of practical applications that make it an essential tool for any Unix or Linux user. Whether you&#8217;re a seasoned system administrator or a curious novice, understanding piping is key to unlocking the true potential of these operating systems.<\/p>\n<h2>What is Piping in Unix or Linux?<\/h2>\n<p>Piping is based on a simple, yet ingenious, premise. It allows you to take the output of one command and feed it directly as input into another, creating a seamless data flow between processes. This is achieved using the pipe symbol, represented by the vertical bar &quot;|&quot;. When you use the &quot;|&quot; symbol in the command line, you&#8217;re essentially telling the system to send the output of the preceding command into the next one. Here&#8217;s a basic example:<\/p>\n<pre><code>ls | grep .txt<\/code><\/pre>\n<p>In this example, the &quot;ls&quot; command lists the files in the current directory, and the output is piped into the &quot;grep .txt&quot; command, which filters the list to display only files with the &quot;.txt&quot; extension. This illustrates how piping enables you to perform tasks that would be cumbersome with separate commands.<\/p>\n<h3>Examples of Piping in Unix or Linux<\/h3>\n<p>Certainly! Here are some practical examples of piping in Unix or Linux:<\/p>\n<p><strong>1. Counting Lines in a Text File:<\/strong><br \/>\nTo count the number of lines in a text file, you can use the wc (word count) command in combination with piping:<\/p>\n<pre><code>cat file.txt | wc -l<\/code><\/pre>\n<p>This command first uses cat to display the contents of &quot;file.txt,&quot; and then pipes it to wc -l to count the number of lines in the file.<\/p>\n<p><strong>2. Search for a Specific String in Files:<\/strong><br \/>\nYou can use the grep command with piping to search for a specific string within multiple files in a directory:<\/p>\n<pre><code>grep \"search_term\" *.txt<\/code><\/pre>\n<p>This command searches for &quot;search_term&quot; in all text files in the current directory.<\/p>\n<p><strong>3. Sort and Remove Duplicates:<\/strong><br \/>\nTo sort a list of items alphabetically and remove duplicates, you can use the sort and uniq commands together:<\/p>\n<pre><code>cat unsorted_list.txt | sort | uniq<\/code><\/pre>\n<p>This command takes the contents of &quot;unsorted_list.txt,&quot; sorts them alphabetically, and then removes duplicate lines.<\/p>\n<p><strong>4. Calculate the Total Size of Files in a Directory:<\/strong><br \/>\nTo calculate the total size of files in a directory, you can use du (disk usage) and awk:<\/p>\n<pre><code>du -sh \/path\/to\/directory | awk '{print $1}\u2019<\/code><\/pre>\n<p>This command uses du to get the disk usage of the directory, pipes it to awk to extract and print the size in a human-readable format.<\/p>\n<p><strong>5. Find the Most CPU-Intensive Processes:<\/strong><br \/>\nTo identify the most CPU-intensive processes, you can use ps, sort, and head together:<\/p>\n<pre><code>ps aux --sort=-%cpu | head<\/code><\/pre>\n<p>This command uses ps to list all processes, sorts them by CPU usage in descending order, and then shows the top processes using head.<\/p>\n<p><strong>6. Extract Data from a CSV File:<\/strong><br \/>\nTo extract specific columns from a CSV file, you can use cut and grep together:<\/p>\n<pre><code>cat data.csv | grep \"search_criteria\" | cut -d, -f2,4<\/code><\/pre>\n<p>This command first searches for lines containing &quot;search_criteria,&quot; then uses cut to extract the 2nd and 4th columns (assuming fields are separated by commas).<\/p>\n<p><strong>7. Create a Backup of a Directory:<\/strong><br \/>\nTo create a compressed backup of a directory, you can use tar and gzip with piping:<\/p>\n<pre><code>tar -czvf backup.tar.gz \/path\/to\/directory<\/code><\/pre>\n<p>This command uses tar to create an archive of the directory and pipes it to gzip to compress it into a single file.<\/p>\n<h3>Practical Applications of Piping<\/h3>\n<p>Piping offers a plethora of practical applications in Unix and Linux, making it a fundamental skill for any user. Here are a few examples:<\/p>\n<p><strong>1. Data Filtering and Processing:<\/strong> Piping is commonly used to filter and process data. For instance, you can use the &quot;sort&quot; command to alphabetically sort a list of names and then pipe the sorted list to &quot;uniq&quot; to remove duplicate entries.<\/p>\n<p><strong>2. Text Manipulation:<\/strong> You can use piping to manipulate and transform text data. &quot;sed&quot; and &quot;awk&quot; are two powerful tools for text processing when combined with piping.<\/p>\n<p><strong>3. Automation and Scripting:<\/strong> Piping is a key component of shell scripting. You can create intricate scripts that automate a series of tasks by connecting commands through pipes.<\/p>\n<p><strong>4. System Monitoring:<\/strong> Piping is essential for monitoring system resources. Commands like &quot;ps,&quot; &quot;top,&quot; and &quot;grep&quot; can be piped together to filter and analyze system processes.<\/p>\n<h3>Advanced Piping Techniques<\/h3>\n<p>Beyond the basics, advanced piping techniques allow you to construct complex pipelines to achieve specific goals. Some tips to enhance your piping skills include:<\/p>\n<p><strong>1. Multiple Pipelines:<\/strong> You can chain multiple commands together to create more sophisticated pipelines. For example: command1 | command2 | command3.<\/p>\n<p><strong>2. Subshells:<\/strong> You can use subshells, created with parentheses, to isolate and manipulate data within a pipeline. This enables you to apply different operations to subsets of data.<\/p>\n<p><strong>3. Named Pipes:<\/strong> Named pipes, also known as FIFOs (First In, First Out), are a type of pipe that allows for interprocess communication between commands and even different users.<\/p>\n<p><strong>Conclusion:<\/strong><br \/>\nIn the world of Unix and Linux, piping stands as a testament to the elegance of simplicity. It&#8217;s a concept that has empowered users for decades, enabling them to accomplish a wide range of tasks efficiently and effectively. Through the seamless connection of commands and data streams, piping transforms complex operations into a series of manageable steps. As we conclude our exploration of piping in Unix and Linux, we hope you&#8217;ve gained a deeper understanding of its significance and versatility.<\/p>\n<p>Piping is not merely a technical feature; it&#8217;s a bridge that connects users to the immense power of these operating systems. From text processing and data manipulation to automation and scripting, piping opens the door to endless possibilities. By mastering the art of piping, you&#8217;ll be better equipped to streamline your workflow, reduce redundancy, and achieve more with less effort.<\/p>\n<p>Now that you&#8217;ve grasped the basics, we encourage you to dive deeper into the world of Unix and Linux. Explore different commands and their applications, experiment with more complex pipelines, and unlock the potential of your system. Piping is but one piece of the puzzle, and with continued exploration, you&#8217;ll uncover more treasures that these operating systems have to offer.<\/p>\n<h2>FAQ (Frequently Asked Questions) Related to piping in unix or linux:<\/h2>\n<p>Here are some FAQs related to piping in UNIX or LINUX.<\/p>\n<p><strong>1. What is piping in Unix and Linux?<\/strong><br \/>\nPiping is a feature that allows you to connect the output of one command to the input of another, creating a seamless flow of data. It&#8217;s denoted by the &quot;|&quot; symbol in the command line.<\/p>\n<p><strong>2. How do I use piping in Unix and Linux?<\/strong><br \/>\nTo use piping, simply enter a command, followed by the &quot;|&quot; symbol, and then another command. For example, to list the files in a directory and search for a specific file within that list, you can use: ls | grep filename.<\/p>\n<p><strong>3. What are some practical uses for piping?<\/strong><br \/>\nPiping is incredibly versatile. You can use it for tasks like searching for text in files, filtering and sorting data, counting lines, and much more. It&#8217;s a powerful tool for text processing, automation, and data manipulation.<\/p>\n<p><strong>4. Can I chain multiple commands together using piping?<\/strong><br \/>\nYes, you can chain multiple commands together in a pipeline. For example, you can use a series of commands connected by piping to perform complex operations on data.<\/p>\n<p><strong>5. Are piping and redirection the same thing?<\/strong><br \/>\nNo, piping and redirection are different concepts. Piping is about connecting the output of one command to the input of another, while redirection involves changing where a command&#8217;s input or output comes from or goes to (e.g., using &quot;&gt;&quot; to redirect output to a file).<\/p>\n<p><strong>6. Is piping exclusive to the command line in Unix and Linux?<\/strong><br \/>\nPiping is primarily used in the command line interface, but you can also incorporate it into shell scripts and automation scripts to perform more complex tasks.<\/p>\n<p><strong>7. Are there any limitations to piping?<\/strong><br \/>\nWhile piping is incredibly powerful, it&#8217;s important to note that not all commands are pipe-compatible. Some commands may not accept input from a pipe, and you should check the documentation for specific commands to understand their capabilities.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unix and Linux, two of the most widely used operating systems in the world, owe much of their power and versatility to the elegant concept of piping. Piping is a fundamental feature that allows users to connect commands, creating a seamless flow of data from one process to another. It is a cornerstone of the [&hellip;]<\/p>\n","protected":false},"author":52,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[231],"tags":[],"class_list":["post-18308","post","type-post","status-publish","format-standard","hentry","category-linux-operating-system"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Piping in Unix or Linux<\/title>\n<meta name=\"description\" content=\"Piping is based on a simple, yet ingenious, premise. It allows you to take the output of one command and feed it directly as input into another, creating a seamless data flow between processes.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Piping in Unix or Linux\" \/>\n<meta property=\"og:description\" content=\"Piping is based on a simple, yet ingenious, premise. It allows you to take the output of one command and feed it directly as input into another, creating a seamless data flow between processes.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"PrepBytes Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prepbytes0211\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-20T06:30:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1700460199109-6.jpg\" \/>\n<meta name=\"author\" content=\"Prepbytes\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prepbytes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/\"},\"author\":{\"name\":\"Prepbytes\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e\"},\"headline\":\"Piping in Unix or Linux\",\"datePublished\":\"2023-11-20T06:30:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/\"},\"wordCount\":1423,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/43.205.93.38\/#organization\"},\"image\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1700460199109-6.jpg\",\"articleSection\":[\"Linux\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/\",\"url\":\"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/\",\"name\":\"Piping in Unix or Linux\",\"isPartOf\":{\"@id\":\"http:\/\/43.205.93.38\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1700460199109-6.jpg\",\"datePublished\":\"2023-11-20T06:30:31+00:00\",\"description\":\"Piping is based on a simple, yet ingenious, premise. It allows you to take the output of one command and feed it directly as input into another, creating a seamless data flow between processes.\",\"breadcrumb\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/#primaryimage\",\"url\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1700460199109-6.jpg\",\"contentUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1700460199109-6.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/43.205.93.38\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Operating system\",\"item\":\"https:\/\/prepbytes.com\/blog\/category\/operating-system\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Linux\",\"item\":\"https:\/\/prepbytes.com\/blog\/category\/operating-system\/linux-operating-system\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Piping in Unix or Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/43.205.93.38\/#website\",\"url\":\"http:\/\/43.205.93.38\/\",\"name\":\"PrepBytes Blog\",\"description\":\"ONE-STOP RESOURCE FOR EVERYTHING RELATED TO CODING\",\"publisher\":{\"@id\":\"http:\/\/43.205.93.38\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/43.205.93.38\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/43.205.93.38\/#organization\",\"name\":\"Prepbytes\",\"url\":\"http:\/\/43.205.93.38\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp\",\"contentUrl\":\"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp\",\"width\":160,\"height\":160,\"caption\":\"Prepbytes\"},\"image\":{\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/prepbytes0211\/\",\"https:\/\/www.instagram.com\/prepbytes\/\",\"https:\/\/www.linkedin.com\/company\/prepbytes\/\",\"https:\/\/www.youtube.com\/channel\/UC0xGnHDrjUM1pDEK2Ka5imA\"]},{\"@type\":\"Person\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e\",\"name\":\"Prepbytes\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g\",\"caption\":\"Prepbytes\"},\"url\":\"https:\/\/prepbytes.com\/blog\/author\/gourav-jaincollegedekho-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Piping in Unix or Linux","description":"Piping is based on a simple, yet ingenious, premise. It allows you to take the output of one command and feed it directly as input into another, creating a seamless data flow between processes.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/","og_locale":"en_US","og_type":"article","og_title":"Piping in Unix or Linux","og_description":"Piping is based on a simple, yet ingenious, premise. It allows you to take the output of one command and feed it directly as input into another, creating a seamless data flow between processes.","og_url":"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/","og_site_name":"PrepBytes Blog","article_publisher":"https:\/\/www.facebook.com\/prepbytes0211\/","article_published_time":"2023-11-20T06:30:31+00:00","og_image":[{"url":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1700460199109-6.jpg","type":"","width":"","height":""}],"author":"Prepbytes","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Prepbytes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/#article","isPartOf":{"@id":"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/"},"author":{"name":"Prepbytes","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e"},"headline":"Piping in Unix or Linux","datePublished":"2023-11-20T06:30:31+00:00","mainEntityOfPage":{"@id":"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/"},"wordCount":1423,"commentCount":0,"publisher":{"@id":"http:\/\/43.205.93.38\/#organization"},"image":{"@id":"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1700460199109-6.jpg","articleSection":["Linux"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/","url":"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/","name":"Piping in Unix or Linux","isPartOf":{"@id":"http:\/\/43.205.93.38\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/#primaryimage"},"image":{"@id":"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1700460199109-6.jpg","datePublished":"2023-11-20T06:30:31+00:00","description":"Piping is based on a simple, yet ingenious, premise. It allows you to take the output of one command and feed it directly as input into another, creating a seamless data flow between processes.","breadcrumb":{"@id":"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/#primaryimage","url":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1700460199109-6.jpg","contentUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1700460199109-6.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/prepbytes.com\/blog\/piping-in-unix-or-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/43.205.93.38\/"},{"@type":"ListItem","position":2,"name":"Operating system","item":"https:\/\/prepbytes.com\/blog\/category\/operating-system\/"},{"@type":"ListItem","position":3,"name":"Linux","item":"https:\/\/prepbytes.com\/blog\/category\/operating-system\/linux-operating-system\/"},{"@type":"ListItem","position":4,"name":"Piping in Unix or Linux"}]},{"@type":"WebSite","@id":"http:\/\/43.205.93.38\/#website","url":"http:\/\/43.205.93.38\/","name":"PrepBytes Blog","description":"ONE-STOP RESOURCE FOR EVERYTHING RELATED TO CODING","publisher":{"@id":"http:\/\/43.205.93.38\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/43.205.93.38\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/43.205.93.38\/#organization","name":"Prepbytes","url":"http:\/\/43.205.93.38\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/","url":"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp","contentUrl":"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp","width":160,"height":160,"caption":"Prepbytes"},"image":{"@id":"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/prepbytes0211\/","https:\/\/www.instagram.com\/prepbytes\/","https:\/\/www.linkedin.com\/company\/prepbytes\/","https:\/\/www.youtube.com\/channel\/UC0xGnHDrjUM1pDEK2Ka5imA"]},{"@type":"Person","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e","name":"Prepbytes","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g","caption":"Prepbytes"},"url":"https:\/\/prepbytes.com\/blog\/author\/gourav-jaincollegedekho-com\/"}]}},"_links":{"self":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/18308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/users\/52"}],"replies":[{"embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/comments?post=18308"}],"version-history":[{"count":1,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/18308\/revisions"}],"predecessor-version":[{"id":18309,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/18308\/revisions\/18309"}],"wp:attachment":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/media?parent=18308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/categories?post=18308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/tags?post=18308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}