Upgrade Ubuntu 16.04 LTS To Ubuntu 18.04 LTS Server
$ uname -r → lists current kernel
$ sudo dpkg --list 'linux-image*'|awk '{ if ($1=="ii") print $2}'|grep -v `uname -r` → List the old kernel
uname -m (architecture of the system) -a (full info)