terminal upgrade OS ubuntu code example Example: update os ubuntu terminal sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade