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