Nguyễn Việt Thắng
New member
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.
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.