Latest web development tutorials

Linux halt command

Linux command Daquan Linux command Daquan

If the system is runlevel 0 or 6, then the Linux halt command shut down the system, otherwise shutdown instruction (plus -h parameter) instead.

Access: the system administrator.

grammar

halt [-n] [-w] [-d] [-f] [-i] [-p]

Parameter Description:

  • -n: do before shutting down the memory data is written back to disk action
  • -w: not really shut down, but the records are written to / var / log / wtmp archives
  • -d: do not put records are written to / var / log / wtmp archives (-n This parameter contains the -d) -f: forced shutdown, this command does not call shutdown
  • -i: shut down first before all network-related devices to stop
  • -p: When the shutdown time, the way to do off the power (poweroff) action

Examples

Turn off the system

# halt

Shut down and turn off the power

# halt -p

Turn off the system, but does not leave a record

# halt -d

Linux command Daquan Linux command Daquan