how to check linux version in ubuntu command code example Example 1: ubuntu version command line cat /etc/os-release Example 2: check ubuntu version lsb_release -a