linux get linux distribution from terminal code example Example 1: linux release name lsb_release -a Example 2: cat /etc/os-release cat /etc/os-release