Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Are there any Keyboard Shortcuts to Shutdown? (e.g. in Windows Alt+F4+Alt+F4 Right Arrow Enter)

share|improve this question

6 Answers

up vote 10 down vote accepted

No, but assuming you're using 11.10, one can easily be added by going to:

  1. System Settings
  2. Keyboard
  3. Shortcuts tab
  4. Custom Shortcuts
  5. Then the little + icon.

You can give it the name "Shutdown", and the command gnome-session-quit --power-off --force, then apply whatever keyboard shortcut you want to it.

share|improve this answer

Yes there is shortcut to shutdown (not a keyboard one).

Shortly pressing and releasing the power button will call the shutdown dialogue box.

share|improve this answer
2  
not on my thinkpad... whad does it depend on? – nutty about natty May 2 '12 at 8:25
haha. Good point there. – chrisjlee Feb 22 at 16:20

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."

share|improve this answer

You can try this steps as well:

  1. Press Alt+F10.

  2. The file menu will get displayed in the top.

  3. Use the Right Arrow key in your keyboad and go to extreme right (Pressing Left Arrow might also work and be much faster).

  4. Select the shutdown in from the menu and hit enter.

share|improve this answer

Press Ctrl+Alt+Del to bring the shutdown window up then press Enter.

share|improve this answer
In my case (12.04) it will close the user session, not shut the system down. – carnendil Feb 22 at 16:21

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.