What is the use of && in Linux?
Answer
Think of && as specifying “run the first command and, only if it succeeds, run the second command”. The && operator is most often used in scripts when you
need to ensure that some file exists or some other condition is met before you take the next step.
Answer
Think of && as specifying “run the first command and, only if it succeeds, run the second command”. The && operator is most often used in scripts when you
need to ensure that some file exists or some other condition is met before you take the next step.