Home > Articles > Operating Systems, Server > Linux/UNIX/Open Source

  • Print
  • + Share This
This chapter is from the book Building Pipelines

Building Pipelines

The power of the command line really comes into its own when you start combining commands by using pipelines. A pipeline uses the pipe symbol (|) to string together a number of commands to perform a specific task. As an example, if you use the cat command to display the contents of a file to the screen, but the file scrolls past you, create a pipeline and use the less command so you can browse the file:

username@computer:~$ cat foo.txt | less
username@computer:~$ ps ax | grep getty | wc -l
  • + Share This
  • 🔖 Save To Your Account