O'Reilly logo

A Practical Guide to Red Hat® Linux® 8 by Mark G. Sobell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required