在X分钟内关闭系统

用分钟数替换60,直到您希望机器关闭。或者以格式hh:mm(shutdown -h 9:30)给出绝对时间或立即关闭(shutdown -h now)
.

0

linux命令:shutdown -h 60 60 -h shutdown shutdown -h 60rootopen.com
linux命令:shutdown -h 60 60 -h shutdown shutdown -h 60rootopen.com
yzep 2018-03-03 23:37:48
输出
linux命令:shutdown 详解

评论

相关推荐

linux命令:shutdown --poweroff --poweroff shutdown shutdown --poweroffrootopen.com
linux命令:shutdown --poweroff --poweroff shutdown shutdown --poweroffrootopen.com
.

重启时强制fsck。在/由于文件系统问题而挂载为只读的系统上很有用。

linux命令:shutdown -rF now now -rF shutdown shutdown -rF nowrootopen.com
linux命令:shutdown -rF now now -rF shutdown shutdown -rF nowrootopen.com
.

好的做法是使用“shutdown -r now”而不是重新启动。

linux命令:shutdown -r now now -r shutdown shutdown -r nowrootopen.com
linux命令:shutdown -r now now -r shutdown shutdown -r nowrootopen.com
.

((60 * 4))在被输入到关机命令之前会被bash变成240,用任意数量的小时替换4,让bash做数学运算。

linux命令:shutdown -h $((60 * 4)) 4)) * $((60 -h shutdown shutdown -h $((60 * 4))rootopen.com
linux命令:shutdown -h $((60 * 4)) 4)) * $((60 -h shutdown shutdown -h $((60 * 4))rootopen.com
.

从'disown'手册页:disown可防止当前shell在当前shell终止登录会话时向每个给定作业发送HUP信号。

linux命令:shutdown -h 240 & disown disown & 240 -h shutdown shutdown -h 240 & disownrootopen.com
linux命令:shutdown -h 240 & disown disown & 240 -h shutdown shutdown -h 240 & disownrootopen.com
.

你可以使用shutdown -h 18:32在18:32关闭你的机器。

linux命令:shutdown -h +240 +240 -h shutdown shutdown -h +240rootopen.com
linux命令:shutdown -h +240 +240 -h shutdown shutdown -h +240rootopen.com
.

这样,您可以指定希望机器关闭多少小时。

linux命令:shutdown 60*4 & disown disown & 60*4 shutdown shutdown 60*4 & disownrootopen.com
linux命令:shutdown 60*4 & disown disown & 60*4 shutdown shutdown 60*4 & disownrootopen.com
.

重启

linux命令:shutdown now -r -r now shutdown shutdown now -rrootopen.com
linux命令:shutdown now -r -r now shutdown shutdown now -rrootopen.com
.
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

推荐
    热门命令