power

cmd/power

Power and session actions

Overview

power performs power and session actions.

Main subcommands:

  • off shuts down the system.
  • reboot restarts the system.
  • logout ends the active graphical session.

Example usage:

power off
power reboot
power logout

Caution:

  • --force bypasses service-managed shutdown/reboot and should be used only

for emergency recovery.

Usage

  • power <subcommand> [options]

Subcommands

NameDescription
off Shutdown the system
reboot Reboot the system
logout Logout active graphical session

Exit Codes

CodeMeaning
0 Success
1 Runtime/command error
2 Invalid flags/usage