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 08-31-2005, 09:16 AM   #1
ChillyWillie
LQ Newbie
 
Registered: May 2005
Location: Rhode Island, USA
Distribution: Ubuntu 7.04 (Feisty) & FC7
Posts: 28

Rep: Reputation: 15
Determining currently running distribution


Rather than hunting through the log files and directory structures for hints, is there an easy way (command, script, etc.) to determine which distribution of Linux you are currently running at the shell prompt?
 
Old 08-31-2005, 09:26 AM   #2
bushidozen
Member
 
Registered: Oct 2004
Posts: 215

Rep: Reputation: 30
I believe the command is:
Code:
uname -r
 
Old 08-31-2005, 09:27 AM   #3
JazzMastaJim
Member
 
Registered: Jun 2004
Location: Deep in the woods of southern NJ
Distribution: Pendrivelinux 2008
Posts: 70

Rep: Reputation: 15
Type "man uname" (without quotes) at the command prompt.
 
Old 08-31-2005, 09:29 AM   #4
ChillyWillie
LQ Newbie
 
Registered: May 2005
Location: Rhode Island, USA
Distribution: Ubuntu 7.04 (Feisty) & FC7
Posts: 28

Original Poster
Rep: Reputation: 15
'uname' does not always give distro information. A lot of kernel versions have a suffix that gives this away (i.e. Mandrake == -mdk), but not the distro I'm trying to figure out. It is possible that this is a vanilla linux kernel customized by whoever set it up, but that's something I'd like to know for sure before I start making assumptions.
 
Old 08-31-2005, 10:06 AM   #5
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
look in /etc usually there is a file that gives it away for example redhat-release for Redhat, Fedora and other Redhat clones
 
Old 08-31-2005, 10:53 AM   #6
colnago
Member
 
Registered: Nov 2003
Location: Canada
Distribution: ArchLinux
Posts: 324

Rep: Reputation: 30
Yeah, the file in /etc will tell you a bit. I notice that a lot of distros based on debian will have a debian-release file and it will say unstable or testing or whatever their philosophy is. It is up to you to figure out if it is mepis or knoppix or whatever. I notice the newest xandros calls the file lsb-release and is quite specific.

`cat /etc/*release` should get you somewhere, at least you know the base.
 
Old 08-31-2005, 12:41 PM   #7
ChillyWillie
LQ Newbie
 
Registered: May 2005
Location: Rhode Island, USA
Distribution: Ubuntu 7.04 (Feisty) & FC7
Posts: 28

Original Poster
Rep: Reputation: 15
That seems to be the best way besides 'uname'. Unfortunately, this distro I've inherited seems to be built from scratch and custom stripped. I know this company used to base it off of Red-Hat, then Slackware, and possibly Debian, but it appears they now base it off of vanilla Linux.

Thanks for the help everyone.
 
  


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 tell what Linux distribution and version is running? johnkantor12 Linux - General 4 12-17-2007 11:35 AM
Determining which Linux version I'm running kfiralfia Linux - General 6 11-26-2007 05:03 AM
running kernel 2.4 and 2.6 on the same distribution possible ? javeree Linux - Newbie 1 11-25-2004 08:02 AM
Determining running time of video with mplayer miknight Linux - Software 2 05-25-2004 09:11 AM
Determining IP bluethundr Linux - Newbie 1 08-11-2003 11:16 PM

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

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