get unix version code example Example 1: cat /etc/os-release cat /etc/os-release Example 2: linux version lsb_release -a