Skip to content
Follow
Ubuntu Linux

How to Properly Shut Down Ubuntu Linux: A Complete Guide

Richard
Written by
Richard
Aug 28, 2022 Updated Sep 15, 2026 2 min read
How to Use Sticky Notes in Windows 11
How to Use Sticky Notes in Windows 11

Shutting down Ubuntu Linux safely means closing all open apps and saving your work before the computer loses power to prevent file damage. You can turn off your PC using the desktop menu or by typing the sudo shutdown -h now command in the Terminal (a text-based window for running commands).

Advertisement
⚡ Quick Answer

You can shut down Ubuntu via the system menu in the top-right corner, selecting Power Off / Log Out, then Power Off. Alternatively, use the command line with `sudo shutdown now`. For emergencies, holding the physical power button is an option.

Advertisement

How to turn off the PC in Ubuntu Linux from the system menu

You can shut down Ubuntu Linux from the system menu by clicking the status area in the top-right corner of your desktop. Select Power Off / Log Out from the drop-down list, and then click Power Off in the dialogue box that appears on your screen to safely turn off your computer.

Click the ‘Power Off’ option from the expanded menu, then click the final ‘Power Off’ button to confirm.

Ubuntu Linux system menu showing shutdown options
ubuntu linux system menu shutdown

From the expanded options, select ‘Power Off’.

Expanded power off menu in Ubuntu Linux
ubuntu linux expanded power off menu

Finally, click the ‘Power Off’ button to shut down your Ubuntu PC.

Power off button in Ubuntu Linux interface
ubuntu linux power off button

Shutdown Ubuntu Linux from the command line

Open a terminal by pressing Ctrl+Alt+T if you prefer working from the command line. Run the shutdown command in your terminal. For example, type shutdown +15 to turn off your PC in 15 minutes.

Advertisement
🐧Bash / Shell
sudo shutdown now

To schedule a shutdown for a specific time, use the 24-hour clock format. You'll specify the time with the shutdown command.

example: shutdown at 5:00 PM

🐧Bash / Shell
sudo shutdown 17:00 

Users can also set a delay before the shutdown happens. For instance, to shut down in 15 minutes, use the following command:

🐧Bash / Shell
sudo shutdown +15

Shutdown Ubuntu Linux using the PC Power button

You can shut down Ubuntu Linux using the physical power button on your computer or laptop when the desktop interface stops responding. Pressing and holding the power button for a few seconds forces the hardware to cut power, which shuts down the operating system immediately.

Advertisement

Choose the method that fits your current situation best.

Ubuntu offers several ways to shut down depending on your setup.

  • Ubuntu Linux offers various methods to shut down the system, catering to user preferences and circumstances.
  • The system menu provides an intuitive, graphical way to shut down the PC, accessible from the top-right corner of the top bar.
  • Command line enthusiasts can utilize the 'sudo shutdown' command to turn off the PC, with options to specify a time or wait duration.
  • As a last resort, holding the power button or disconnecting the power plug may be employed if other methods fail, though these should be used sparingly.

Was this guide helpful?

Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

📚 Related Tutorials

How to Turn "Week Numbers" on or off for Calendar in Ubuntu Linux
Ubuntu Linux How to Turn "Week Numbers" on or off for Calendar in Ubuntu Linux
How to Show Weekday on Ubuntu Top Menu Bar
Ubuntu Linux How to Show Weekday on Ubuntu Top Menu Bar
How to Add or Remove the Sign-In Screen Power Button in Windows 11
Windows How to Add or Remove the Sign-In Screen Power Button in Windows 11
How to Add Weather Info to Ubuntu Top Menu Bar
Ubuntu Linux How to Add Weather Info to Ubuntu Top Menu Bar

3 Comments

Leave a Comment

Your email address will not be published. Required fields are marked *