LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 09-21-2005, 04:13 AM   #1
freebies
LQ Newbie
 
Registered: Feb 2005
Posts: 27

Rep: Reputation: 15
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
 
Old 09-21-2005, 05:48 AM   #2
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 45
hi there,
there is no standard command to check distro...
under /etc you can find something like..
Code:
redhat-release
Suse-release
...
..
regards,
slackie1000
 
Old 09-21-2005, 05:49 AM   #3
freebies
LQ Newbie
 
Registered: Feb 2005
Posts: 27

Original Poster
Rep: Reputation: 15
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 ?
 
Old 09-21-2005, 06:43 AM   #4
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
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...
 
Old 09-21-2005, 07:11 AM   #5
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 45
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 ?
... 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
 
Old 09-22-2005, 03:36 AM   #6
freebies
LQ Newbie
 
Registered: Feb 2005
Posts: 27

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
what is the best dist. mhmo Linux - Newbie 2 08-13-2004 02:34 PM
Which dist to use with broadband nowens Linux - Distributions 6 07-31-2004 12:33 PM
Best dist for PPC??? ElPuello Linux - Distributions 3 05-17-2004 03:45 PM
dist-upgrade slinkyredfoot Debian 1 08-03-2003 08:25 PM
RPM-dist to Source dist GAVollink Linux - Distributions 4 08-16-2002 11:06 PM


All times are GMT -5. The time now is 01:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration