Is it possible to start the execution of a command and not wait for it to return before continuing.
I.E.
commands
/usr/sbin/thing.sh <-- Don't wait for this to return.
more commands
It is as easy as typing sleep N . This will pause your script for N seconds, with N being either a positive integer or a floating point number.
Using the && Operator. We should note that the && operator executes the second command only if the first one returns an exit code of 0. If we want to run the next script, even if the first one fails, we can replace the && operator with the; operator, which runs the next command regardless of the exit code.
1) Ctrl + P This is the most dependable shortcut in Linux to execute the last run command in the terminal. Just press the Ctrl and P keys together to fill the prompt with the last executed command and you are ready to go.
A single &
symbol between commands will let each run independently without relying on the previous command having succeeded.
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