December 20, 2010
Update, upgrade and reboot via command line for Ubuntu
Some notes for how to keep a system up to date when you only have SSH (command line) access:
From an Ubuntu forum:
$ sudo apt-get update
$ sudo apt-get upgrade
Put another way, update does not make any changes to the set of installed packages, it merely checks to see what's new. Whereas upgrade does.
To reboot from SSH (command line) use this command or see some other options:
$ sudo reboot
which is equivalent to
$ sudo init 6
One thing I am not sure of is what happens if you shut down via SSH. Can you boot a computer via SSH? Probably, but I haven't figured it out yet.
Posted by kkwaiser at December 20, 2010 10:38 AM