Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Use the sleep command of linux to delay the execution of the current command

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the use of linux sleep command to delay the execution of the current command, the article is very detailed, has a certain reference value, interested friends must read it!

The sleep command can be used to delay the current action for a period of time until the time specified by the parameter is reached or interrupted by the signal. Permissions: all users.

Syntax format: sleep [parameters]

Common parameters:

-- help displays auxiliary messages-- version displays version number number time length, followed by s, m, h or dsmhds for seconds, m for minutes, h for hours, and d for days

Reference example

Dormant for 5 minutes:

[root@linuxcool ~] # sleep 5m

Delay 1 minute after displaying the current time, display the time again:

[root@linuxcool ~] # date; sleep 1m; date is all about delaying the execution of the current command using linux's sleep command. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report