LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 02-16-2007, 08:09 AM   #1
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Rep: Reputation: 30
How to find out which Distro I'm running?


How do I find out which distribution I am on my machine?
 
Old 02-16-2007, 09:51 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Some systems give you a splash screen when they boot. You can also try the command 'uname -a' and that will give you a line of information, mostly about the kernel. Some distros will give you a clew here, for example Mandrivas kernels show 2.6.12-12mdk, the mdk part tells you it is a stock mandriva kernel. Not all distros tell you that way, but it is a place to start.
 
Old 02-16-2007, 11:19 AM   #3
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Original Poster
Rep: Reputation: 30
Linux SentralOrigin 2.6.17.13 #1 Sun Feb 11 15:36:54 EST 2007 i686 Intel(R) Pentium(R) 4 processor 3.47GHz GenuineIntel GNU/Linux
 
Old 02-16-2007, 11:59 AM   #4
pengStudent
Member
 
Registered: Nov 2003
Location: California
Distribution: Slackware 14
Posts: 55

Rep: Reputation: 15
Go to the /etc directory. In there you might see a version file. That file should tell you what distro is installed.
 
Old 02-16-2007, 12:54 PM   #5
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Following pengStudent's suggestion, something like this:
Code:
$ for x in $(ls /etc | grep release);do if [ -f /etc/$x ];then echo $x;cat /etc/$x;echo;fi;done
fedora-release
Fedora Core release 6 (Zod)

redhat-release
Fedora Core release 6 (Zod)
 
Old 02-16-2007, 02:18 PM   #6
alienux
Member
 
Registered: Sep 2006
Location: Dayton, Ohio
Distribution: Slackware 12, Fedora Core, PCLinuxOS
Posts: 194

Rep: Reputation: 30
One of these two commands will usually give you the info you want on most distributions:

Code:
cat /etc/issue
Code:
cat /proc/version
 
Old 02-16-2007, 02:45 PM   #7
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Original Poster
Rep: Reputation: 30
This is \n.\O (\s \m \r) \t
 
Old 02-16-2007, 02:50 PM   #8
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Most distros have a release file located in /etc/. Usually its named /etc/release or /etc/{DISTRO}-release. On some distros its called /etc/{DISTRO}-version. Those are the files that you really need to look out for if you want to find out what distro you are running.
 
  


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
How can I find out what distro is a server running? supervillan Linux - Newbie 1 06-01-2006 05:34 AM
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
any linux distro can running in RAM , not need CD_ROM reading when running. wangcity Linux - General 3 09-18-2003 05:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 10:34 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