You are here: >

Linux and Unix sleep command

sleep commandAbout sleep
sleep syntax
sleep examples
Related commands
Linux and Unix main page

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.