As far as I know, using &
after the command is for running it in the background.
Example of &
usage: tar -czf file.tar.gz dirname &
But how about &&
? (example)
the reason for which something exists or is done, made, used, etc. an intended or desired result; end; aim; goal. determination; resoluteness. the subject in hand; the point at issue. practical result, effect, or advantage: to act to good purpose.
The "purpose of" a shoe is protecting your feet. A possible "purpose for" a shoe is to smash bugs. So "purpose of" describes a property or capacity of a shoe, where "purpose for" describes what might be done with a shoe. Save this answer.
Purpose is defined as to plan or intend to do something. An example of purpose is someone deciding they will start saving 10% of their income. verb. 5. A result that is desired; an intention.
Your life purpose is your contribution However, true purpose is about recognizing your own gifts and using them to contribute to the world—whether those gifts are playing beautiful music for others to enjoy, helping friends solve problems, or simply bringing more joy into the lives of those around you.
Furthermore, you also have ||
which is the logical or, and also ;
which is just a separator which doesn't care what happend to the command before.
$ false || echo "Oops, fail" Oops, fail $ true || echo "Will not be printed" $ $ true && echo "Things went well" Things went well $ false && echo "Will not be printed" $ $ false ; echo "This will always run" This will always run
Some details about this can be found here Lists of Commands in the Bash Manual.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With