All manner of Shut down modes in Ubuntu Linux
Posted Under: General
In Ubuntu,there are a couple of ways to shut down the system.This tutorial lists all manner of them(test on Ubuntu 9.04 Gnome).
1.As all we know,ubuntu desktop version provides shutdown,restart options in top right.
2.Use “shutdown” command to shutdown with a little time delayed.
sudo shutdown -h 3600
When you run this command in terminal(Applications/Accessories/Terminal),system will shutdown 3600 seconds later.If want to restart,use “-r” instead of “-h”.
3.Quick shutdown with “poweroff”,”halt” command.
sudo poweroff
sudo halt
4.Ultimate shutdown with “init”,”telinit”
sudo init 0
This will stop the system “top-level” process,so user processes and other processes will stop,system down.
“sudo init 1″ :single user mode. Equivalent to Windows safe mode.
“sudo init 2″ :multiple user mode.(without NFS)
“sudo init 3″ : global multiple user mode(include NFS).
“sudo init 6″ : restart.
for more use:
man init
5.Remote shutdown using SSH.
Log into remote system and use previous methods.Or use this command:
ssh –l user remotehost sudo shutdown –h now
Related posts:
- One command to clear/flush DNS cache in Ubuntu Linux
- Gnome3 Tip- Find out Gnome-shell Shutdown/Restart buttons
- Create an ISO image from Live-CD in Ubuntu Linux
- Howto enable thinkpad hotkeys in Ubuntu 10
- How to reset forgotten user/boot password in Ubuntu


Reader Comments
if you happen to get the message :
sudo: no tty present and no askpass program specified
the t option can be added to the command, i.e. :
ssh -t -l user remotehost sudo shutdown -h now ‘Your system is going down.’
this -t will make ssh try to allocate a tty
[Reply]
My question is would i mess up my computer if i use sudo init 0 to shutdown my computer everytime? I say that because ubuntu 10.10 has issues shutting down and i still haven’t found another solution eveytime it shutsdown it the computer starts up again but not with init 0 though. Contact me at rgudgen@hotmail.com thank you! I really like ubuntu 10.10 and would not like to upgrade!
[Reply]