halt

halt command to disable the Linux operating system is running. halt command will first detection system runlevel , if runlevel 0 or 6, then shut down the system, otherwise call shutdown to shut down the system.

grammar

halt (option)

Options

-d: Do not recorded in the wtmp; 
-f: no matter what the current runlevel, do not call shutdown that is forced to shut down the system; 
-i: Prior to halt, shut down all network interfaces; 
-n: before the halt, without first execution Sync ; 
-p: halt after performing the poweroff ; 
- W : wtmp records only, without the end of the actual system.

Examples

// Close the halt -p power off the system. 
halt -d // shut down the system, but does not leave a record.

Guess you like

Origin www.cnblogs.com/betterquan/p/11370356.html