For those just starting with Ubuntu, there are many new things to learn and many of the Linux tutorials online are not intended for beginners.

Here, we take a different approach. Most if not all of our tutorials are for beginners.

This post is also a beginner’s post and it’s going to show those just leaning Ubuntu how to disable the shutdown, restart and logout confirmation box each time they execute these commands.

You see, Ubuntu is configured to always prompt you with a dialog box when you wish to shutdown, restart or logout of your session.

This is a safeguard and it prevents you from mistakenly shutting down or restarting your computer when you don’t intent to.

Not everyone wants to be asked every time he/she want to turn of Ubuntu. Folks who are in hurry most of the time may accidentally leave their computer running even though they select the shutdown command and not confirming the action when prompted.

This brief tutorial is going to show you how to turn it off so you don’t get prompted each time you want to shutdown your machine.

When this feature is activated, it prompts you with the following screen.

Are you sure you want to close all programs and shutdown your computer?

Run the commands below to turn it off.

Press Ctrl – Alt – T on your keyboard to open the terminal. When it opens, run the commands below on the terminal windows and press Enter.

gsettings set com.canonical.indicator.session suppress-logout-restart-shutdown true

 

That’s it! You’ll never be prompted again when you click shutdown, restart or logout of Ubuntu.

To undo the changes and bring back the confirmation, run the commands below

gsettings set com.canonical.indicator.session suppress-logout-restart-shutdown false

 

shutdown-ubuntu-confirm

 

Enjoy!

Frequently Asked Questions

How can I disable shutdown confirmation in Ubuntu?

To disable shutdown confirmation in Ubuntu, you can run the command 'gsettings set com.canonical.indicator.session suppress-logout-restart-shutdown true' in the terminal.

What is the purpose of the shutdown confirmation box in Ubuntu?

The shutdown confirmation box in Ubuntu is a safeguard to prevent accidental shutdowns or restarts by prompting users to confirm their action before proceeding.

How do I bring back the shutdown confirmation in Ubuntu?

To bring back the shutdown confirmation in Ubuntu, you can run the command 'gsettings set com.canonical.indicator.session suppress-logout-restart-shutdown false' in the terminal.

Can I disable restart confirmation in Ubuntu as well?

Yes, you can disable restart confirmation in Ubuntu by using the same command to suppress logout, restart, and shutdown confirmation.

What are the keyboard shortcuts to open the terminal in Ubuntu?

To open the terminal in Ubuntu, you can use the keyboard shortcut Ctrl + Alt + T.

Why would someone want to disable the shutdown confirmation in Ubuntu?

Some users may want to disable the shutdown confirmation in Ubuntu to save time and avoid the extra step of confirming the action every time.

Is it possible to undo the changes and re-enable the shutdown confirmation in Ubuntu?

Yes, you can undo the changes and re-enable the shutdown confirmation in Ubuntu by running the command to suppress the logout, restart, and shutdown confirmation.

How does disabling the shutdown confirmation affect user experience in Ubuntu?

Disabling the shutdown confirmation in Ubuntu can streamline the shutdown process and provide a faster user experience for those who prefer not to be prompted each time.