UBUNTU basic networking commands

Change hostname

vi /etc/hostname
vi /etc/hosts

Restart Network

/etc/init.d/networking restart

Change IP address

nano /etc/network/interfaces

Find Ubuntu version

cat /etc/issue.net
or
cat /etc/lsb/release

Upgrade Ubuntu

apt-get update
apt-get dist-upgrade