Linux poweroff Command

Linux 命令大全Linux Command Reference

The poweroff command is used to shut down the computer and cut off the power.

Permission required: System administrator.

Syntax

poweroff [-n] [-w] [-d] [-f] [-i] [-h]

Parameter Description:

  • -n: Do not write memory data back to the hard disk before shutdown.
  • -w: Does not actually shut down, only writes the record to the /var/log/wtmp file.
  • -d: Do not write the record to the /var/log/wtmp file.
  • -i: Stop all network-related devices before shutdown.
  • -p: Set all hardware in the system to standby mode before shutting down the operating system.

Examples

Shut down the system

# poweroff

Linux 命令大全Linux Command Reference

Other Extensions