Sleep, which means sleeping, is used primarily to delay the time of a shell script in a Linux system, or to use it in a Windows system where the following small series describes the usage of the Read command in a Linux system, and distinguishes Linux Usage of sleep and Windows sleep commands.
The Linux Sleep command sleeps for a period of time, which can be used to delay the current action for a period of time. The units of time are: seconds (s), minutes (m), hours (h), Days (d)
Usage is as follows:
Sleep Number (suffix)
Default unit is seconds (s)
Sleep 1 = = sleep 1s
Sleep 0.01
View version
The difference between Linux sleep and Windows sleep
In Linux, the unit of sleep is seconds, which is sleeping 1000, which is 1000 seconds, whereas in Windows, Sleep (1000) sleeps for 1 seconds if the call to the function unit is milliseconds.
The above is the Linux using the Sleep command method introduced, from the introduction of this article, you can see that sleep in the Linux and Windows system differences are mainly in the unit, but the usage is not much different.