How to turn off, restart, and shut down Linux

Updated: 06/30/2020 by Computer Hope
Tux the Linux penguin.

Below are the ways to shut down, turn off, reboot, etc. a Linux computer from the GUI (graphical user interface)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 on one of the sides of the window.

If you cannot shut down or reboot the computer through the GUI, 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 a link below to view more details about each command.