Linux sleep command

Updated: 04/26/2017 by Computer Hope

About sleep

The sleep command is used to delay for a specified amount of time.


The sleep command pauses for an amount of time defined by NUMBER.

SUFFIX may be "s" for seconds (the default), "m" for minutes, "h" for hours, or "d" for days.

Some implementations require that NUMBER be an integer, but modern Linux implementations allow NUMBER to also be a floating-point value.

If more than one NUMBER is specified, sleep delays for the sum of their values.

sleep syntax

sleep OPTION


--help Display a help message, and exit.
--version Display version information, and exit.

sleep examples

sleep 10

Delays for 10 seconds.

date — Output the current date and time.
time — Report how long it takes for a command to execute.
wait — Await process completion.