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