Syntax:
Command 1 | Command 2 | Command 3 |…
Example: Convert the contents of a file to uppercase
Exercise:
1. Check which files are under /usr/bin (ls)
ls /usr/bin
2. Count the number of files under /usr/bin (wc -l)
wc -l /usr/bin
3. Display the first 10 lines of the /etc/passwd file
head -10 /etc/passwd
4. Display lines 6-10 of the /etc/passwd file
ls 6~10 /etc/passwd
5. Convert lines 6-10 of the /etc/passwd file to uppercase and save to /tmp/passwd.out