print version of linux on terminal code example Example 1: linux version command lsb_release -a Example 2: cat /etc/os-release cat /etc/os-release