Is there a keyboard shortcut available to shutdown the computer?
I know I can use the Power button, but I would like to be able to it from the keyboard.
If such a shortcut does not exist already, how do I set one?
|
Is there a keyboard shortcut available to shutdown the computer? I know I can use the Power button, but I would like to be able to it from the keyboard. If such a shortcut does not exist already, how do I set one? |
||||
|
|
In older versions of Ubuntu Ctrl + Alt + Del will bring up options for shutdown, restart, suspend and hibernate. these can then be selected with the arrow keys and Enter. For a single hit solution in later versions you can use this script to create a keyboard short cut. First you need to download the scrip and save it on your computer. Next you need to make it executable by right clicking on it going to properties -> Permissions -> Allow executing file as a program. Finally go to System Settings -> Keyboard -> Shortcuts -> Custom Shortcuts and click the small plus symbol. For the command type in
or whatever path you saved the script to. Suspend, hibernate and restart are also availiable by this method, just replace shutdown in the above command. |
|||||||
|
|
Well an easy one to try is to open the keyboard shortcuts. If using unity press window key/superkey and then type shor and select keyboard shortcuts. Here you can then create a new shortcut then assign a key combo to shut your pc down...without using your power button! ;) The command for your shortcut should be :
Which will shut you down!! Here is mine I did to test it
Hope that helps Let us know if that works for you |
||||
|
|
11.10 and laterPressing Ctrl+Alt+Del leads to the logout dialog. If you need the old functionality back you will have to define your own shortcut by opening Keyboard -> Shortcuts from System settings and add this command:
Alternatively we can use a shoutdown only dialog as shown in this answer
NoteBefore we can use Ctrl+Alt+Del we will have to assign another shortcut to logout. 11.04 and earlierUsing default keyboard settings pressing Ctrl+Alt+Del will open the following window:
The first entry is selected by default for an immediate shutdown by just pressing Return in addition. There also is a countdown that shuts down your system after 60s without any further keyboard action. |
|||||||||||||
|
|
You could also launch a Terminal window with Ctrl+Alt+T and then type |
|||||||||
|
|
There are some low level keyboard shortcuts available. They talk directly to the kernel and can break things. You probably shouldn't use these. But in the interest of counter-acting the atrocious answers recommending this method, here's how to use the SysReq button to shutdown or reboot your system. If your cpu bursts into flames because of these incantations, well, can't say I didn't warn you. GracefulRebootThere is a mnemonic here: alt + SysRq + r + e + i + s + u + b I jacked this from wikipedia*:
ShutdownThis is the same except at the end use alt + SysRq + r + e + i + s + u + o DestructiveThis is like yanking the power cord out. You risk destroying recently saved data (files not quite actually written to disk) and you will definitely lose anything unsaved. On the upside, it is quick and to the point. reBoot: alt + SysRq + b shut Off: alt + SysRq + o Thank you wikipedia for the information in this post. |
||||
|
|
|
After install Gnomenu, I found out another simple way to shutdown the computer immediately without choosing any option. Just add this |
||||
|
|
|
If you are using an ubuntu version prior to 11.04, the easiest way I have found to shutdown the computer via keyboard is to type: Super + S, Up, Enter You will be offered a prompt that asks for verification that you want to shutdown. But you can eliminate this prompt by making a configuration change in the gconf-editor. Then the shortcut I posted above will directly and quickly shutdown the computer without prompt. |
||||
|
|
|
This is a good way:
|
||||
|
|
|
It's not a real shortcut, but an interesting way to do it from the keyboard:
|
||||
|
|
|
In 12.10 (don't know about lower versions) it is possible to do the following:
|
||||
|
|
For KDE / Kubuntu
Confirmed to work in Kubuntu 12.04 and 12.10.
Or in Energy Saving settings, set the power button on your PC to do this:
|
|||
|
|
|
Best is Ctrl+Alt+Del as many have said. That's the best way (especially for non-advanced users). If you wanna do it more 'geekily',then try opening a terminal and typing in the command ( [ If the system is not responding, you can do |
|||||||||
|
|
I believe that there's some sysRequest short cut but I know of only two... They're useful to me so if you want to reboot hit sysRequest+alt then type REUSB if you want to shut down always sysRequest+alt and type RSEOUI |
|||||||||
|
|
The fastest and most reliable thing is Ctrl+Alt+SysRq+o It's a direct command to the kernel |
|||||||||||
|