linux延时关机命令 linux开机延时启动脚本( 四 )


第二种方法:
使用shutdown定时关机的问题
shutdown: invalid option -- -
Usage: shutdown [-akrhfnc] [-t secs] time [warning message]
-a: use /etc/shutdown.allow
-k: don't really shutdown, only warn.
-r: reboot after shutdown.
-h: halt after shutdown.
-f: do a 'fast' reboot (skip fsck).
-F: Force fsck on reboot.
-n: do not go through "init" but go down real fast.
-c: cancel a running shutdown.
-t secs: delay between warning and kill signal.
** the "time" argument is mandatory! (try "now") **
PS:我是这样的shutdown -t 54000 就是运行15小时后自动关机
【linux延时关机命令 linux开机延时启动脚本】linux延时关机命令的介绍就聊到这里吧,感谢你花时间阅读本站内容 , 更多关于linux开机延时启动脚本、linux延时关机命令的信息别忘了在本站进行查找喔 。

推荐阅读