update ubuntu version from terminal code example Example: upgrade ubuntu command line sudo apt update sudo apt upgrade