Help - Search - Members - Calendar
Full Version: command to check linux distribution
Linuxhelp > Support > Technical Support
Hi all,

Is there a single command in Linux to check which Linux distribution(that is, flavour) am I running?
For example,
$cat /etc/issue on a RHEL machine shows
Red Hat Enterprise Linux Server release 5 (Tikanga)
Kernel \r on an \m

But if I want to check if I am running on RedHat or SUSE, then what command should I key in?

I was wondering this myself the other day. Alas, I don't think there is a one-command-fits-all to find out which distribution you have. My suggestion would be that you turn the thing off and on and see what it says.

You *might* get some clues by running "uname -r" which will show you kernel version - Some ditributors will rename the kernel to make it specific to their distro (eg, RHEL kernels have RHEL in their name)

thanks DS2K3!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.