sleep1
Suspend execution for an interval of time
Usage
sleep seconds
Overview
The sleep utility suspends execution for at least the given number of seconds. seconds must be a non-negative decimal value and may contain a fraction.
Asynchronous events
- SIGALRM
-
Terminate early, with a zero exit status.
Exit status
The sleep utility exits 0 on success, and >0 if an error occurs.
Examples
Wait five seconds before running a command:
$ sleep 5; echo Hello, World!
List a file twice per second:
while ls -l file; do sleep 0.5 done
Releases
61 releases since OpenBSD 2.1; the text changed 15 times.