sleep
瑞兹 发表于 2020-12-07 09:10浏览次数:
在类似Unix的操作系统上,sleep命令用于延迟指定的时间。
On Unix-like operating systems, the sleep command is used to delay for a specified amount of time.
目录:
1 sleep 运行系统环境
2 sleep 描述
3 sleep 语法
4 sleep 例子
sleep 运行系统环境
sleep 描述
所述sleep命令暂停由NUMBER定义的时间量。
SUFFIX可以是“ s ”(秒)(默认值),“ m ”(分钟),“ h ”(小时)或“ d ”(天)。
一些实现要求NUMBER为整数,但是现代的Linux实现允许NUMBER也为浮点值。
如果指定了多个,则sleep延迟为其值之和。
The sleep command pauses for an amount of time defined by NUMBER.
SUFFIX may be "s" for seconds (the default), "m" for minutes, "h" for hours, or "d" for days.
Some implementations require that NUMBER be an integer, but modern Linux implementations allow NUMBER to also be a floating-point value.
If more than one NUMBER is specified, sleep delays for the sum of their values.
sleep 语法
sleep NUMBER[SUFFIX]...
sleep OPTION
选件
|
--help
|
显示帮助消息,然后退出。
|
|
--version
|
显示版本信息,然后退出。
|
sleep NUMBER[SUFFIX]...
sleep OPTION
Options
|
--help
|
Display a help message, and exit.
|
|
--version
|
Display version information, and exit.
|
sleep 例子
sleep 10
Delays for 10 seconds.