How do I identify the particular Linux flavor via command line?
Solution 1:
Try the below command.... It worked for me...
cat /proc/version
Once you know that you are running Red Hat for example, you can get to the point with:
cat /etc/redhat-release
Or on Debian:
cat /etc/debian_version
or in general :
cat /etc/*-release
Also you could use the following command
cat /etc/issue
Solution 2:
For displaying details including release and codename of the distro
lsb_release -a
Solution 3:
I hope this works echo $(lsb_release -si)