To shut down Fedora, the root user may issue the /sbin/shutdown
command. The shutdown
man page has a complete list of options, but the two most common uses are:
/sbin/shutdown -h now
/sbin/shutdown -r now
在关闭所有东西后,-h
选项会关闭机器,而 -r
选项则会重新启动机器。
PAM console users can use the reboot
and halt
commands to shut down the system while in runlevels 1 through 5. For more information about PAM console users, refer to the Red Hat Enterprise Linux Deployment Guide.
如果计算机没有自己关闭电源,在有信息提示系统已经关闭之前,请不要关掉计算机电源。
如果没有看到这个信息,表示系统还没有卸载所有硬盘分区,此时关机有可能会导致文件系统崩溃。