What is the difference between && and || in Linux?

What is the difference between && and || in Linux?
Answer
&& means
to execute next command if the previous exited with status 0. For the opposite, use || i.e. to be executed if previous command exits with a status not equal to 0 ; executes always.
 

Tìm kiếm

Back
Top