Terminal or shell command to shutdown or reboot Ubuntu Linux

So how do you shutdown or reboot Ubuntu Linux from a terminal or a shell prompt? If GUI is working you can always click on a Quit button. If GUI is not working or if you are working remotely over ssh type the following command:


To shutdown / poweroff Ubuntu Linux

Type the command:

sudo halt

OR

sudo shutdown -h now

OR

sudo shutdown -r now

OR

sudo init 6

To reboot Ubuntu Linux

Type the command:

sudo reboot

More information can be found about these two commands by typing following commands (man page):

man reboot
man shutdown

Related posts:

  1. using traceroute on ubuntu terminal
  2. 30+ Basic Linux Commands
  3. Securing Linux Server with IPKungfu
  4. Ubuntu Linux enable telnet service
  5. HOWTO: Monitoring your desktop Linux the easy way

One thought on “Terminal or shell command to shutdown or reboot Ubuntu Linux

  1. Pingback: shutdown linux

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>