view ubuntu server version code example Example 1: ubuntu cat release cat /etc/os-release Example 2: check ubuntu version lsb_release -a