Instructions for using the Linux system Sleep command

Source: Internet
Author: User
Tags linux sleep sleep

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.