how to know the os version in linux terminal code example Example 1: linux version command lsb_release -a Example 2: cat /etc/os-release cat /etc/os-release