check linux distro code example
Example 1: find operating system linux
#Get details about linux distro
cat /etc/os-release
Example 2: check the linux distribution
cat /etc/os-release
Example 3: linux version command
lsb_release -a
Example 4: get linux distro from terminal
dmesg | head -1