sleep

Creates a process that sleeps for a specified interval

sleep time

sleep time-list

The sleep utility causes the process executing it to go to sleep for the time specified. Refer to the sleep info page for complete documentation.

Arguments

Typically the amount of time that a process sleeps is given as a single integer argument, time, which represents seconds. You can append a unit specification to the integer: s (seconds), m (minutes), h (hours), and d (days).

You can construct a time-list by including several times on the command line: The total time that the process sleeps is the sum of the times. For example, if you specify 1h 30m 100s, the process sleeps for 91 minutes and 40 seconds.

Examples

You can use sleep from the command line ...

Get A Practical Guide to Red Hat® Linux® 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.