242 You Are Here
Figure 16.14: Stringing commands and comparing files
cat < sneakers.txt
Because we used the less-than symbol (<) to separate the cat command from the file, the output of
sneakers.txt was read by cat.
16.10 Pipes
No, we’re not going to start talking about plumbing here. In Linux, “pipes” connect the standard
output of one command to the standard input of another command.
Let’s take a step back, to the ls command. There are plenty of options available with ls,butwhatif
the contents of a directory stream by too quickly for you to view them?
Let’s view the contents of the /etc directory.
ls -al /etc
How do we take a closer look at the output before it races off the screen?
Comments to this Manuals