How to shutdown ubuntu from the command line

To shutdown ubuntu, type:
sudo shutdown -h 0

This command can be used for other purposes such as rebooting the system (-r). The 0 indicates the amount of time before the systems starts to shutdown which can be an integer or the string now.
see man 8 shutdown

Post a comment or leave a trackback: Trackback URL.


  • Anxious Nut  On November 12, 2009 at 4:30 pm

    Adding these snippets might help:
    1. For instant shutdown, type “sudo halt” or “sudo poweroff“.
    2. For instant reboot, type “sudo reboot“.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: