1. MagicESP
  2. Ubuntu Server 18.04
  3. Show the Version of Ubuntu Server

Show the Version of Ubuntu Server

display the ubuntu version

lsb_release -a

other information

uname -a

upgrade major version

sudo apt install -y update-manager-core && sudo do-release-upgrade

cleanup /boot

https://askubuntu.com/questions/142926/cant-upgrade-due-to-low-disk-space-on-boot

dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge