Linux poweroff Command
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
# poweroffOther Extensions
Linux Command Reference