linux how to print current os version from command line code example Example 1: linux show version cat /etc/os-release Example 2: linux version command lsb_release -a