LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to know which dist am i using (https://www.linuxquestions.org/questions/linux-general-1/how-to-know-which-dist-am-i-using-365494/)

freebies 09-21-2005 03:13 AM

how to know which dist am i using
 
how do i know which distribution i am using
when i type uname -a it just shows linux & kernel version but nothing like 'RHEL or Centos4 or u know'

thank you

slackie1000 09-21-2005 04:48 AM

hi there,
there is no standard command to check distro...
under /etc you can find something like..
Code:

redhat-release
Suse-release
...
..

regards,
slackie1000

freebies 09-21-2005 04:49 AM

alright so i found cat /proc/version pretty muhc shows it for RHEL, tho for Centos it says RHEL too (but with centos mail so it is obvious its centos however no idea if 3.4 or what) maybe it just takes knowledge of what each distributions output here ?

Nathanael 09-21-2005 05:43 AM

have a look in your grub config... usually the distros mentions some helpful line in there, used to clarify what you are about to boot...

slackie1000 09-21-2005 06:11 AM

hi there,
Quote:

Originally posted by freebies
alright so i found cat /proc/version pretty muhc shows it for RHEL, tho for Centos it says RHEL too (but with centos mail so it is obvious its centos however no idea if 3.4 or what) maybe it just takes knowledge of what each distributions output here ?
:confused: ... hum.. did you read my post? there is no standard command to find which distro you are running...
but, under /etc you can find some files with information...
a definitive solution is writing a script to check few different files..
regards,
slackie1000

freebies 09-22-2005 02:36 AM

slackie! yea i didnt, i dontknow how but i somewhat didnt see it :) anyway, thanks to both of you for info, both show the info /etc/*-version file sometimes little more about actual package


All times are GMT -5. The time now is 09:24 AM.