How to shut Down Ubuntu by using Keyboard only. [Like Windows style]
In windows XP if we press Start+u+u this keys for shutdown.
and Start+u+r for restart computer.
Start+u+h for Hibernet
etc.
How can I do it in Ubuntu.
Any keyboard shortcut for it? and without terminal also.
I read:-
How to shut down the system
How to shut down my computer?

- 2,907
-
4Possible duplicate of Shut down computer from keyboard – agold Jan 05 '16 at 13:21
4 Answers
Well you could open terminal by pressing CTRL+ALT+T
then simply type :
-for shutdown:
sudo shutdown
or
sudo poweroff
-for restart:
sudo reboot
As far as I am aware, there isn't a system shortcut for shutdown, but you could create one. Read Are there any Keyboard Shortcuts to Shutdown?
I've got a nice one for you:
Shutting down by using a hotkey
Install
consolekit
:sudo apt-get install consolekit
or use the Ubuntu Software Center: consolekit
Press Super, then type Keyboard, then click on the Keyboard icon
Click on Hotkeys
Click on Custom hotkeys
Add a new entry by clicking on the + sign:
Name: Shutdown
Command:
/usr/bin/dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop
Now click Apply, then click in the second column to assign a hotkey.
Press any hotkey combination you desire. For instance: Ctrl+Alt+U
Enjoy!
Reboot, hibernate, suspend
If you want to restart instead, replace said command by:
dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart
If you need to hibernate, replace it by:
dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Hibernate
Finally, if you're looking for a suspend shortcut, use this one:
dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend
References
- Majal's solution at https://askubuntu.com/a/385316/18510
- RetroX' post at the Arch Forums

- 971
- 3
- 13
- 20

- 7,655
If you are logged in to a graphical session
Ctrl+Alt+t
sudo poweroff
If you are logged in to a ssh or vty session
sudo poweroff

- 10,517