linux how to know distro on command line code example Example 1: check the linux distribution cat /etc/os-release Example 2: linux release name lsb_release -a