nivedhitha
Jan 3 2008, 05:45 AM
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?
Regards,
nivedhitha
DS2K3
Jan 3 2008, 08:21 PM
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)
D