LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-18-2007, 10:41 PM   #1
pnicos
LQ Newbie
 
Registered: Jun 2007
Posts: 3

Rep: Reputation: 0
What System Distribution is installed


When I putty into a server (linux)
How do I find out what distribution of linux is on that server. Not the kernal #.# , but Redhat 9 or CentOS 4.2 or debian X. Full detail of the actual instalation and any related information?

Note it must be command line based, the command [uname] is not any help!

thanks nico
 
Old 06-18-2007, 10:42 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
This should do it:

cat /etc/*release
 
Old 06-18-2007, 11:03 PM   #3
pnicos
LQ Newbie
 
Registered: Jun 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Some progress

With: /etc/*release

On the one machine the result was: CentOS release 4.2 (Final)

but on the other: cat: /etc/*release: No such file or directory

and as luck will have it, this is the one I did not install and need to know
what linux was installed.

Thanks
 
Old 06-18-2007, 11:04 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by macemoneta
This should do it:

cat /etc/*release
So...I'm on Mepis 6.5 and the above says it is Ubuntu 6.06......

The world is imperfect

Other ways to tell:
Package Manager--many packages will include the distro name
/boot files---kernel and other files may have hints
 
Old 06-18-2007, 11:09 PM   #5
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
Well, if the distribution is LSB (Linux Standards Base) compliant, you can try:

lsb_release -d

(note: might be lsb-release on some distributions from online docs).

Last edited by macemoneta; 06-18-2007 at 11:11 PM.
 
Old 06-18-2007, 11:13 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Which then reads that same file and comes back with the same answer....
My hunch is that Ubuntu is lsb-compliant and Mepis is not.
 
Old 06-18-2007, 11:29 PM   #7
pnicos
LQ Newbie
 
Registered: Jun 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Excellent:

The answer is [lsb_release –d]

The second server is: Debian GNU/Linux 4.0r0 (etch)

This means thy installed the incorrect distribution (must be CentOS)

It is strange (every thing is strange with linux) that linux do not have better info on the
exact installation details (human readable) . With all the distributions http://en.wikipedia.org/wiki/List_of..._distributions

Thank you, this one will go into my personal help file.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Distribution for system with 64MB RAM Angryguy Linux - General 2 10-13-2006 07:01 PM
Choosing a distribution for a server system Svenstaro Linux - Distributions 4 01-18-2006 08:30 AM
Identify system distribution speres Linux - Distributions 6 10-25-2004 10:12 PM
What command can tell me what distribution of debian I have installed? bender00102 Linux - Software 2 10-12-2003 08:28 PM
How to know what is installed on a non-rpm based distribution? shimsha *BSD 3 05-17-2003 01:42 PM


All times are GMT -5. The time now is 02:43 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration