In Ubuntu 11.04, Ctrl-Alt-Del gives me a menu with shutdown, hibernate, suspend and restart, but no logout. Is there a key combination to logout of Ubuntu? Is there a way to provide one?
Creating custom keyboard shortcuts:For 12.04 LTS and later:To add a new shortcut open System Settings -> Keyboard and choose the Shortcuts tab:
Press the '+' sign on the bottom left to enter the name of your custom shortcut and the command you want to run (e.g. For 14.04 LTS and later:In a default Unity session the new logout dialog is presented needing another at least two keystrokes to select poweroff from the menu:
The old dialog with a 60 s timeout will only be displayed in a gnome-flashback session. |
|||||||||||||
|
|
In Ubuntu 11.10 you could write a script containing
make it executable with In previous Ubuntu versions there was |
|||||||||
|
|
In Ubuntu 1204 there are two out-of-the-box solutions:
In each case, confirm logout by hitting Enter. A bug in Ubuntu for #1 is that if you login and do nothing and hit Alt-F2 you get Dash (to run programs). Just hit Esc and try again with Alt-F2 and you'll get the "Run a command" instead this time. |
||||
|
|
|
If you are using Unity (the default environment in Ubuntu 11.04 and later) then you can press the |
|||||||||
|
|
I think you can just make custom shortcut for |
||||
|
|
|
Another way is to restart lightdm. In 14.04 that would be |
|||
|
|


Ctrl+Alt+Lin 12.04 to lock screen. – AWE Aug 26 '14 at 6:33