English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux Reference Manual

Linux Command大全

Linux halt command 6 If the system's runlevel is 0 or -h parameter) to replace.

Permission to Use: System Administrator.

Syntax

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

Parameter Description:

  • -n : Do not write memory data back to the hard disk before shutdown
  • -w : It will not really shut down, just write the record to /var/log/the wtmp file
  • -d : Do not write the record to /var/log/the wtmp file (-n This parameter includes -d) -f : Force shutdown without calling the shutdown command
  • -i : Stop all network-related devices first before shutting down
  • -p : Do the action of turning off the power (poweroff) when shutting down

Online Examples

Shutdown the system

# halt

Shutdown the system and turn off the power

# halt -p

Shutdown the system without leaving a record

# halt -d

Linux Command大全