Pipe is used to combine two or more commands, and in this,
the output of one command acts as input to another command
example:
grep command has searched the file ‘sample’, for the string ‘Apple’
cat sample | grep Apple
ls -lt | head #Displays the 10 newest files in the current directory.
du | sort -nr #Displays a list of directories and how much space they consume, sorted from the largest to the smallest.
find . -type f -print | wc -l #Displays the total number of files in the current working directory and all of its subdirectories.
[time [-p]] [!] command1 [ | or |& command2 ] …