How can I shut down or reboot Ubuntu using terminal commands?
Open your terminal with CTRL+ALT+T and do these following commands
To shutdown the system:
& one more command for restart:
Another way as one of the user mentioned.
You can get more info on the
Hate passwords (sudo) and love one-liners?
For Ubuntu 14.10 or earlier:
Other commands you may like:
Hibernate: (if enabled on your system)
For Ubuntu 15.04 and later:
(This is due to Ubuntu's shift in using
Since hibernate is normally disabled by default in Ubuntu systems, you can enable this by checking this answer: http://askubuntu.com/a/617254/101985
this will shutdown your computer and halt it. That is what the -h is for. Then, in the time area you can choose the shutdown delay ( in minutes ) and if you want you can send a brodcast message in the message area ( like goodbye, or I'm shutting the thing down :P ).
To restart the computer type
Now, instead of shuting it down and halting it, you will restart your computer once it's shutdown. :) Best of luck
As systemctl is been using these days from Ubuntu 15.04 ,
Hope that helps.
protected by Raja Apr 2 '14 at 17:25
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?