LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 01-29-2010, 01:26 PM   #1
dd1313
LQ Newbie
 
Registered: Dec 2009
Posts: 29

Rep: Reputation: 15
how to find out what distro is on PC


Hi Guys

So I start up a Server and it ends at the console.I enter the username/password.How can I find out what Linux distro this is
version etc from the command line

Thanks
Dev
 
Old 01-29-2010, 01:33 PM   #2
nuwen52
Member
 
Registered: Feb 2009
Distribution: Debian, CentOS 5, Gentoo, FreeBSD, Fedora, Mint, Slackware64
Posts: 208

Rep: Reputation: 46
Code:
cat /etc/issue
That works on CentOS and Mint, for certain. So, it might work on all distros.
 
Old 01-29-2010, 01:38 PM   #3
slacker_et
Member
 
Registered: Dec 2009
Distribution: Slackware
Posts: 138

Rep: Reputation: 27
This has been covered in other threads. Search is your friend.
/etc/issue is not reliable.
Look for /etc/*release* and/or /etc/*version*.

--ET
 
Old 01-29-2010, 01:39 PM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

/etc/issue is a good place to start.

If that doesn't help look for a file with release in its name (/etc/redhat-release for example). The distro is in the name, specifics are in the file.
 
Old 01-29-2010, 01:47 PM   #5
kforbus
Member
 
Registered: Sep 2009
Location: Maryland
Distribution: Slackware
Posts: 68

Rep: Reputation: 29
Quote:
Originally Posted by nuwen52 View Post
Code:
cat /etc/issue
That works on CentOS and Mint, for certain. So, it might work on all distros.
If that doesn't work you could try either of:
Code:
cat /etc/*release
Code:
cat /etc/*version
It depends on the distro. Kind of ironic, huh.
 
Old 01-29-2010, 01:49 PM   #6
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
on Debian based disributions you can simply run lsb_release -a. It will give you an output like so.

Code:
jared@Sarah:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 5.0.3 (lenny)
Release:        5.0.3
Codename:       lenny
jared@Sarah:~$
From that I know this machine is Debian 5.0.3 which is known as Debian Lenny. If you need to know more information you can use uname -a to find out what kernel version is running. This should tell you if you are 32-bit or 64-bit or if you are running a kernel design for a specfic CPU or a custom built kernel . I personally have an AMD 64-bit processor so I ahve a 64-bit version of Linux. if I run uname -a I get the following output

Code:
jared@Sarah:~$ uname -a
Linux Sarah 2.6.26-2-amd64 #1 SMP Thu Nov 5 02:23:12 UTC 2009 x86_64 GNU/Linux
jared@Sarah:~$
Hope that helps
 
Old 01-29-2010, 01:51 PM   #7
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
I also have a 32-bit version of Debian Lenny that I use for a file server. If I run uname -a on that server I get the following output

Code:
jared@S-FSXX01:~$ uname -a
Linux S-FSXX01 2.6.26-2-686 #1 SMP Wed Aug 19 06:06:52 UTC 2009 i686 GNU/Linux
jared@S-FSXX01:~$
686 is an indicator of a 32-bit system. i386 is as well
 
Old 01-29-2010, 02:33 PM   #8
dd1313
LQ Newbie
 
Registered: Dec 2009
Posts: 29

Original Poster
Rep: Reputation: 15
Hi Guys

Please check this.This is from a Xubuntu live CD,What does it mean
when it says that the version is 4.0

THanks
Dev
Attached Thumbnails
Click image for larger version

Name:	version_info.jpg
Views:	20
Size:	36.0 KB
ID:	2600  
 
Old 01-29-2010, 02:58 PM   #9
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
The 4 from version means that it's based on Debian version 4 (etch) if I'm not mistaking, which is the current oldstable release. Current stable release is 5 (lenny) on which *buntu 9 are build.

Kind regards,

Eric
 
  


Reply



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
Trying to find the right Distro for this use.. poptart-on-rye Linux - Distributions 3 12-20-2008 07:39 PM
I cannot find what should be very easy to find... a distro with the Gnome desktop bluecog6 Linux - General 3 06-10-2007 07:31 PM
Yet to find distro I like mouldy_punk Linux - Distributions 3 03-07-2006 01:09 PM
How can you find out what distro you have? KiwiPingu Linux - Newbie 4 07-23-2004 08:32 AM
how do find distro poverud Linux - General 14 11-27-2003 05:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:17 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
Open Source Consulting | Domain Registration