shellspells beta

sleep

sleep NUMBER[SUFFIX]...
sleep OPTION

sleep pauses for the specified number of seconds.

Use this to wait between commands. Can also be used in loops.

Examples

Sleep is often used to add a delay between commands. The && in the following example means only run the next commands if the first one is successful.

date && sleep 5 && date