sleep command
The sleep command, which pauses for a number of seconds and then exits successfully.
In more detail
Scripts use it between retries or polls. sleep 30 & is also a handy long-running command for practising job control and signals.
Related terms
- until loop — A loop that runs its body again and again until a test command succeeds, the reverse of while.
- background job — A command started with & at the end of the line, which runs while the shell immediately gives you the prompt back.
Taught in
- Loops: for, while, until, break, continue — Bash Scripting & Command Line Automation
- Processes, Jobs And Signals — Bash Scripting & Command Line Automation