Answers:
关闭菜单项要求图形系统彻底关闭。例如,具有要保存文件的程序有机会询问用户该怎么做。
shutdown -h now
(同义词:poweroff
;另请参见reboot
)仅向所有正在运行的程序发送信号。他们没有机会查询用户是否有未保存的文件。但是,因此,发送poweroff
命令将在更多情况下起作用。
以安全的方式关闭系统。您可以立即关闭计算机,或使用24小时制安排关闭时间。
关闭系统电源后,shutdown命令将根据指定的选项暂停或重新引导系统。只有root用户可以执行shutdown命令
-r Requests that the system be rebooted after it has been brought down
-h Requests that the system be either halted or powered off after it has been broughtdown, with the choice as to which left up to the system
-H Requests that the system be halted after it has been brought down
-P Requests that the system be powered off after it has been brought down
-c Cancels a running shutdown. TIME is not specified with this option, the firstargument is MESSAGE
-k Only send out the warning messages and disable logins, do not actually bring thesystem down