shutdown强制关机的参数

来源:百度知道 编辑:UC知道 时间:2024/06/16 03:04:28
我用shutdown命令关机时,有的正在运行的程序需要点“确定”才能关机,好像还有一个参数,可以强制关闭程序,进行关机,是什么啊?

强制进行关机命令:shutdown -h now

用法: shutdown [OPTION]... 时间 [信息]
使系统关闭。

Options:
-r reboot after shutdown
-h halt or power off after shutdown
-H halt after shutdown (implies -h)
-P power off after shutdown (implies -h)
-c cancel a running shutdown
-k only send warnings, don't shutdown
-q, --quiet reduce output to errors only
-v, --verbose increase output to include informational messages
--help display this help and exit
--version output version information and exit

时间 可以使用不同的格式,最常用的是简单的一个单词
“now”,其使系统立即关闭。 其它可用的格式有 +m ,此 m
是关机前等待的分钟数;hh:mm 其指定以 24 小时制中的时间。

已登录的用户被一条发送到他们终端的一条消息警告,您可使用 -k
选项可以发送警告而不真的关机。

如果给出 时间 ,此命令将留在前端指导关机发生