How can one shutdown a PC using the keyboard? [duplicate]

I would like to find a way to speed the shutting down process up by using shortcut keys.

I installed Ubuntu 14.10 - Utopic Unicorn on a Compaq HP, but I am not able to do that by following the methods used for the previous Ubuntu versions.

Is there a way to do that?


Solution 1:

you can do

> sudo init 0

to shutdown your computer from the terminal or

sudo shutdown -r now 

to reboot it. Besides you can do man shutdown which will give you more detailed information about the shutdown command.

Solution 2:

The quickest way to PROPERLY shut down any PC running Ubuntu Linux that I know of regards something that can only be properly described as a sort-of keyboard shortcut when using a laptop.

You merely TAP (do not hold down) the power button. This causes a shutdown dialogue to appear in which the highlighted option is SHUT DOWN, so if you then press the ENTER key the computer will begin the orderly shutdown process, and will typically shut down in under 5 seconds.

So from the top, TAP power button and press enter. It shuts down so fast your windows friends will assume you merely closed the lid.

Solution 3:

  • Hit the power button.
  • Use arrow key to go to "shutdown".
  • Hit Enter.

It works with all Ubuntu versions, and it is (to me) the quickest way to shutdown a machine.