The Difference Between “&&” and “|” Unix or Linux Command Line
Ever wonder while using the command-line how to run more than one command on a single line?
|
and
&&
These operators allow you to run more than one command on a single line! You may think they are the same, I did for awhile, here is a short tutorial and explanation to each command.