checking system version linux code example Example 1: linux show version cat /etc/os-release Example 2: linux system version lsb_release -a