Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

sleep

v0.13.0
sleep NÚMERO[SUFIJO]...
sleep OPCIÓN

Pausar por NÚMERO segundos.

Options

pause for NUMBER seconds

Pausar por NÚMERO segundos. SUFIJO puede ser ‘s’ para segundos (por defecto), ‘m’ para minutos, ‘h’ para horas o ‘d’ para días. A diferencia de la mayoría de implementaciones que requieren que NÚMERO sea un entero, aquí NÚMERO puede ser un número de punto flotante arbitrario. Dados dos o más argumentos, pausar por la cantidad de tiempo especificada por la suma de sus valores.

Examples

The examples have not been translated yet and are shown in English. You can help by translating them on tldr-pages.

Delay in seconds:

sleep {{seconds}}

Delay in [m]inutes. (Other units [d]ay, [h]our, [s]econd, [inf]inity can also be used):

sleep {{minutes}}m

Delay for 1 [d]ay 3 [h]ours:

sleep 1d 3h

Execute a specific command after 20 [m]inutes delay:

sleep 20m && {{command}}

Delay forever:

sleep {{[inf|infinity]}}

Delay for one millisecond:

sleep {{0.001|1e-3}}

Display help:

sleep --help

The examples are provided by the tldr-pages project under the CC BY 4.0 License.

Please note that, as uutils is a work in progress, some examples might fail.