halt指令用来关闭系统,然后再通知内核是停止、重启、还是关闭电源。 必要参数具体说明如下: -d 不在wtmp中记录 -f 强制关机或者重启,不调用shutdown -h 让硬件保持standby的状态 -i 关闭系统前先关闭网络系统 -n 不执行sync -p halt后执行poweroff -w 在wtmp中记录,不关闭系统 [root@localhost ~]# halt -p //关闭系统并关闭电源 使用 shutdown 命令关闭 Red Hat linux 或 SuSE linux Enterprise Server 操作系统。 Red Hat L...
在linux下一些常用的关机/重启命令有shutdown、halt、reboot、及init,它们都可以达到重启系统的目的,但每个命令的内部工作过程是不同的,通过本文的介绍,希望你可以更加灵活的运用各种关机命令。 1.shutdown shutdown命令安全地将系统关机。 有些用户会使用直接断掉电源的方式来关闭linux,这是十分危险的。因为linux与windows不同,其后台运行着许多进程,所以强制关机可能会导致进程的数据丢失﹐使系统处于不稳定的状态﹐...
名称:halt 使用权限:系统管理者 使用方式:halt [-n] [-w] [-d] [-f] [-i] [-p] 说明:若系统的 runlevel 为 0 或 6 ,则关闭系统,否则以 shutdown 指令(加上 -h 参数)来取代 参数: -n : 在关机前不做将记忆体资料写回硬盘的动作 -w : 并不会真的关机,只是把记录写到 /var/log/wtmp 档案里 -d : 不把记录写到 /var/log/wtmp 档案里(-n 这个参数包含了 -d) -f : 强迫关机,不呼叫 shut...
halt halt [options] System administration command: turns off the computer. Insert a note in the file /var/log/wtmp; if the system is in runlevel 0 or 6, stop all processes; otherwise, call shutdown -h. Options -d Suppress writing to /var/log/wtmp. -f Call halt even when shutdown -nf would normally be called (i.e., force a call to halt, even when not in runlevel 0 or 6). -h Place hard drives in st...