Are there any Keyboard Shortcuts to Shutdown? (e.g. in Windows Alt+F4+Alt+F4 Right Arrow Enter)
6 Answers
No, but assuming you're using 11.10, one can easily be added by going to:
- System Settings
- Keyboard
- Shortcuts tab
- Custom Shortcuts
- Then the little + icon.
You can give it the name "Shutdown", and the command. Try the command below:
gnome-session-quit --power-off --force
, then apply whatever keyboard shortcut you want to it.

- 1,238

- 2,896
Yes there is shortcut to shutdown (not a keyboard one).
Shortly pressing and releasing the power button will call the shutdown dialogue box.

- 6,465
-
3
-
1
-
1Interesting, this approach works. But it's bugged. The dialog "Shut system down?" appears ... but you can't navigate or confirm with the keyboard. One has to set focus and confirm by mouse clicks. – somethis Jun 07 '13 at 03:50
-
GOLD! the simplest and most obvious of all... and i never even thought about trying that – Peter Perháč Sep 26 '16 at 17:48
You can try this steps as well:
Press Alt+F10.
The file menu will get displayed in the top.
Use the Right Arrow key in your keyboad and go to extreme right (Pressing Left Arrow might also work and be much faster).
Select the shutdown in from the menu and hit enter.
The command in Thomas Boxley's answer works pretty well, but you may want to instead use a command that shuts down and powers off the machine, without any warning dialog.
If you want that, you can use this command:
dbus-send --system --print-reply --system --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop
Making a shortcut for the above command instead provides an instant "quick power off."
This probably not a shortcut, but you dont need a mouse to perform it: Press alt.
In the hud that appears, start typing shut down "Device>Shut Down" should most likely be the first option, press enter.
This opens the shut down dialog box. You can now choose to shut down or restart using arrow keys and then press enter.
It seems a lot, but its really just around 10 key strokes.

- 67,791
- 32
- 179
- 269

- 41
- 3
In Ubuntu 13.04, you can set a keyboard shortcut to this script:
#!/bin/bash dbus-send --print-reply --dest="org.gnome.Shell" /org/gnome/SessionManager/EndSessionDialog org.gnome.SessionManager.EndSessionDialog.Open uint32:2 uint32:0 uint32:60 array:objpath:/org/gnome/SessionManager/EndSessionDialog
This would bring up the shutdown dialog.

- 14,306
--force
option:gnome-session-quit --power-off
– Yassine Sedrani Jun 25 '21 at 11:40