linux show distribution info code example Example 1: get linux distro from terminal dmesg | head -1 Example 2: linux version lsb_release -a