Show Table of Contents
F.5. 关机
要关闭 Red Hat Enterprise Linux, root 用户可以执行
/sbin/shutdown 命令。shutdown 的 man page 中有完整的选项列表,其中有两个最常用的选项:
/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.
如果计算机没有自己关闭电源,在出现表示系统已经关闭的信息前不要不要关闭计算机。
如果没有看到这个信息,表示系统还没有卸载所有硬盘分区,此时关机有可能会导致文件系统崩溃。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.