Bash

Sleep utility

Introduction#

Sleep command can be used to pause for given time.

If you want to use different input, use like this Seconds : $sleep 1s (seconds is default) Minutes : $sleep 1m Hours : $sleep 1h days : $sleep 1d

If you want to sleep for less that one second, use $sleep 0.5 You can use like above according to your need.

$sleep 1

Here the process initiated this call will sleep for 1 second.


This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow