sleep.1 (1236B)
- .\" utils-std: Collection of commonly available Unix tools
- .\" Copyright 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- .\" SPDX-License-Identifier: MPL-2.0
- .Dd June 18, 2025
- .Dt SLEEP 1
- .Os
- .Sh NAME
- .Nm sleep
- .Nd delay for a specified amount of time
- .Sh SYNOPSIS
- .Nm
- .Ar duration
- .Op Ar command Op Ar argument...
- .Sh DESCRIPTION
- The
- .Nm
- utility shall suspends execution for the total of each
- .Ar duration
- argument
- and optionally execute into
- .Ar command .
- .Sh OPERANDS
- .Ss Ar duration
- 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.
- .Ss Ar command
- When present sleep executes into
- .Ar command
- once
- .Ar duration
- elapsed.
- .Sh EXIT STATUS
- .Ex -std
- .Sh SEE ALSO
- .Xr at 1 ,
- .Xr crontab 1 ,
- .Xr nanosleep 3
- .Sh STANDARDS
- .Nm
- should be compliant with the
- IEEE Std 1003.1-2024 (“POSIX.1”)
- specification.
- .Sh HISTORY
- The
- .Ar command
- operand is inspired by s6-portable-utils and
- useful for chainloading environments like
- .Xr execline 1 .
- .Sh AUTHORS
- .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me