Determining type of Linux machine

I want to figure out what type of Red Hat Linux machine I am using. Is there a file on my system I can look at?


cat /etc/*-release

Should be what you are looking for.


uname -a will do it, and has the benefit of working on almost all distros and showing you other system info too.

In addition, you can try looking at /proc/version if your system has it.


If it's recent enough:

lsb_release -a

Should give you some good information.


Right you can use lsb_release -a, or may be:


cat /etc/issue; uname -a