Copied to clipboard

poweroff

`poweroff` is a command-line instruction used to shut down a computer on Linux operating system. It will safely close all running applications, save all unsaved data, and shut down the computer. This is a command that must be executed before exiting the operating system and shutting down the computer.

Examples

  • poweroff: Immediately shutdown and disconnect power.
  • poweroff -f: Forcefully shutdown all programs, and immediately shutdown and disconnect power.
  • poweroff -h: Immediately shutdown and power off.
  • poweroff -d 60: Shutdown the computer after a delay of 60 seconds.
  • poweroff -t 20:30: Shutdown the computer at 8:30 PM.
  • poweroff -f -n: Forcefully shutdown all programs, but don't execute init.
  • poweroff -w: Don't actually shutdown, just send warning message to all users.