how to check the name of current linux distribution code example Example 1: check the linux distribution cat /etc/os-release Example 2: get linux distro from terminal dmesg | head -1