How to turn off, restart, and shut down Linux

LinuxBelow are the ways to shut down, turn off, reboot, etc. a Linux computer from the GUI or the command line.

Shutting down or rebooting the computer from a GUI interface

Shutting down or rebooting the computer from a GUI interface depends on which GUI you are using. Often the shutdown, log out, and reboot options are available through the GUI's main menu or bar located on one of the sides of the window.

If you are unable to find a method of shutting down or rebooting the computer through the GUI, remember you can shut down or reboot the computer using the commands referenced below. You could also create scripts that would run these commands from the GUI.

Command line commands

Commands at the command line interface can be used for halting, turning off (power off), rebooting, or shutting down Linux. Click on the links below to view more details about each command.

halt
poweroff
reboot

shutdown

Additional information

  • See our reboot and shutdown definition for further information and related links on this term.