Manual / sleep
sleep(1)
| SLEEP(1) | General Commands Manual | SLEEP(1) |
NAME
sleep - suspend execution for an interval
SYNOPSIS
sleep seconds
DESCRIPTION
Sleep suspends execution for seconds seconds. The process is blocked in the kernel until the tick counter reaches the target, so a sleeping process takes no share of the processor, and a background sleep does not slow the job in front of it. A signal ends it at once: ^C, or kill(1). The operand is a whole decimal number from 0 through 9999. For example:
sleep 5
waits five seconds before the next command. A running interrupt tick source is required, even for a zero-second wait.
FILES
/usr/man/SLEEP this page
SEE ALSO
DIAGNOSTICS
Exit status is 0 when the interval has elapsed, 1 if no usable tick source is available, 2 for usage errors.
BUGS
Accurate to within a tick (1/60 second) at each end. The wait is kernel-timed only while the interrupt tick runs; with no tick source it refuses rather than hang.
| September 19, 2026 | maux |