Linux sleep command details

Source: Internet
Author: User
Tags linux sleep sleep function usleep

Sleep command details

The linux sleep command is used to sleep for a period of time. sleep can be used to delay the current action for a period of time. The unit of time is: second (s), minute (m), hour (h), Day (d)

The usage is as follows:

Sleep Number (suffix)

The default unit is seconds)

Sleep 1 = sleep 1 s

Sleep 0.01

View version

Differences between linux sleep and windows sleep

In linux, sleep is measured in seconds, that is, sleep 1000 means 1000 seconds of sleep. In windows, if the sleep function is called in milliseconds, sleep (1000) it is 1 second of sleep.

Recommended reading:

Use and difference of sleep () and usleep () in Linux

Usleep function in Linux

Linux Command-sleep-delay specified time

In Linux, the thread calls sleep and the process is suspended.

Related Article

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: info-contact@alibabacloud.com 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.