首页

halt

halt
功能说明:关闭系统。
语  法:halt [-dfinpw]
补充说明:halt会先检测系统的runlevel。若runlevel为0或6,则关闭系统,否则即调用shutdown来关闭系统。
参  数:
  -d  不要在wtmp中记录。 
  -f  不论目前的runlevel为何,不调用shutdown即强制关闭系统。 
  -i  在halt之前,关闭全部的网络界面。 
  -n  halt前,不用先执行sync。 
  -p  halt之后,执行poweroff。 
  -w  仅在wtmp中记录,而不实际结束系统。

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 standby mode before halt or power off.

-i

Shut down network interfaces before halt.

-n

No sync before reboot or halt.

-p

Perform power-off when halting system.

-n

Suppress normal call to sync.

-w

Suppress normal execution; simply write to /var/log/wtmp.