SLEEP(1) | General Commands Manual | SLEEP(1) |
sleep
— delay for
a specified amount of time
sleep |
duration [command [argument...]] |
The sleep
utility shall suspends execution
for the total of each duration argument and optionally
execute into command.
A string containing non-negative decimal numbers including floats, terminated by a suffix: s for seconds, m for minutes, h for hours, d for days. If the final number doesn't have a suffix it is assumed to be seconds. Longer durations are taken as out of scope.
When present sleep executes into command once duration elapsed.
The sleep
utility exits 0 on
success, and >0 if an error occurs.
sleep
should be compliant with the IEEE
Std 1003.1-2024 (“POSIX.1”) specification.
The command operand is inspired by s6-portable-utils and useful for chainloading environments like execline(1).
Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
June 18, 2025 | Linux |