Linux poweroff command
The poweroff command is used to shut down the computer and cut off power.
Permission required: system administrator.
Syntax
poweroff [-n] [-w] [-d] [-f] [-i] [-h]
Parameter Description:
- -n : Do not write memory data back to disk before shutting down
- -w : does not actually shut down; it only writes a record to the /var/log/wtmp file
- -d : does not write a record to the /var/log/wtmp file
- -i : Stop all network-related devices before shutting down
- -p : before shutting down the operating system, set all hardware in the system to standby mode.
Example
Shut down the system
# poweroff
Linux Command Reference