Linux Mint

How to Add a Shutdown (Power Off) Button to Your Desktop on Linux Mint 21

There are different ways to shutdown the device and shutting down the Linux Mint with three clicks is easy. But why spend the extra energy when you can do it in two steps? All you have to perform is to create a shutdown (Power off) button on your desktop. In this tutorial, we have demonstrated the steps for adding the shortcut button to your desktop on Linux Mint 21.

How to Add a Shutdown (Power Off) Button to Your Desktop – Linux Mint

You don’t need any extra software for creating the shutdown button for your Linux desktop. It is simply a matter of creating and adding a new shortcut to the desktop. You can add the shortcut button to shut down the laptop as follows:

Step 1: In Linux, there is the shutdown utility of shutdown in the /sbin directory. Open the terminal and execute the below given command to change the security of the executable. It will require you to add the password:

sudo chmod u+s /sbin/shutdown

Once executed the command, exit the terminal.

Step 2: Next right-click on the empty space on your desktop and choose Create a new launcher here… from the list of context menu:

Step 3: A new window will open, type the Name of the shortcut, you can name it according to your own choice and in the Command, field enter the following command and choose OK:

shutdown -Ph now

Step 4: After saving it, the shortcut with the name you have entered will be created on your desktop. Double-click on it to check whether it’s working or not, it should shut down your device:


Adding a shutdown button to your desktop will give you a more directly accessible option. In Linux there is a built-in utility for creating a shutdown button for your desktop, all you need is to make the file executable. Follow the above-mentioned steps for creating the shortcut and shut down your laptop with a single click.

About the author

Zainab Rehman

I'm an author by profession. My interest in the internet world motivates me to write for Linux Hint and I'm here to share my knowledge with others.