ubuntu cli update code example Example 1: upgrade ubuntu command line sudo apt update sudo apt upgrade Example 2: linux os upgrade sudo do-release-upgrade