Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 05-01-2004, 09:03 PM   #1
LQ Newbie
Registered: May 2004
Location: State of Dilusion
Posts: 1

Rep: Reputation: 0
How do I tell what version of Linux is running?

How can I tell what version, flavor or build is running on a device.
I looked /usr/lib/dv and found no entries. Not sure where else to look for this info.
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-01-2004, 09:08 PM   #2
Registered: Sep 2003
Location: Little Rock, Arkansas
Distribution: Slackware-Current
Posts: 129

Rep: Reputation: 15
u can try :
uname -a
Old 05-01-2004, 10:49 PM   #3
Senior Member
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
that code replies what kernal vs im running, but not much more:

Linux localhost.localdomain 2.4.20-31.9 #1 Tue Apr 13 18:04:23 EDT 2004 i686 i686 i386 GNU/Linux
not much there to find out what distro is running. or is that? ran that as root.
Old 05-01-2004, 11:55 PM   #4
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
How can you not know what distro you're running? In most distros there's something like
in /etc. A distro's just a packager, so there's no system stuff that could tell you that. Unless you're running Mandrake and do 'ls /bin/*drake' or whatever.
Old 05-02-2004, 05:03 AM   #5
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
uname -a && cat /etc/*release
7 members found this post helpful.
Old 05-02-2004, 05:59 AM   #6
Registered: Dec 2003
Location: Johannesburg, South Africa
Posts: 846

Rep: Reputation: 30
LOL this is a funny post
Old 05-02-2004, 07:05 AM   #7
LQ Newbie
Registered: May 2004
Posts: 2

Rep: Reputation: 0
well i m surprised if this is just the question of just seeing what distro u r running then try telneting to that machine and before login u can have enough info u want??
0 members found this post helpful.
Old 05-02-2004, 07:30 PM   #8
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
There is really no way to define which "version" of Linux is running on your box. The uname command is the closest thing to it, which will tell you which version of the *kernel* is running.

As for which distro, it would hard to believe that you wouldn't know what you installed on your own PC. Keep in mind that a distro is simply a kernel plus a set of packages that the distro creator decided should be included. Even in the case of a stock Redhat, Mandrake, Slack, Debian, or whatever installation, if you decided on your own to install various other packages that were not part of that initial installation, would it still be a "Redhat" or "Slack" installation? That's debatable. -- J.W.
0 members found this post helpful.
Old 06-17-2007, 09:29 AM   #9
LQ Newbie
Registered: Jan 2004
Location: Worcester, MA, USA
Distribution: Kali 64-bit 1.0.9a
Posts: 9

Rep: Reputation: 1
I know this is an ancient thread, but I screwed up my mail server's configuration and couldn't remember what version of Debian it was running. Google led me here. The answer for Debian is that it stores it's version number in /etc/debian_version, so type:
less /etc/debian_version
If you don't have the file /etc/debian_version then you're probably not running Debian.

Also, I can tell you one way you can forget what distro you have installed. When I switched my laptop from Windows to Linux a year or two ago, I played around with a lot of distros before I settled on one. Then I didn't have to mess with the installation for a long time, and I found when someone asked me what distro I was running, I could no longer remember whether it was Debian or Ubuntu. I was pretty sure it was Ubuntu, but another WLUG member clued me in that it must be Debian because I was running IceWeasel.
1 members found this post helpful.
Old 07-11-2007, 02:43 PM   #10
LQ Newbie
Registered: Jul 2007
Posts: 3

Rep: Reputation: 0
Thanks Bulliver

Originally Posted by bulliver
uname -a && cat /etc/*release
Thanks Bulliver. I inherited a machine and needed to know the distro version. This helped.
Old 09-19-2007, 11:42 PM   #11
LQ Newbie
Registered: Sep 2007
Posts: 1

Rep: Reputation: 1
Well its a reasonable question, no matter how weird it sounds.
I am renting a web server and needed to know what it was.
Debian 4.0
1 members found this post helpful.
Old 12-17-2007, 11:36 AM   #12
LQ Newbie
Registered: Dec 2007
Posts: 3

Rep: Reputation: 0
finally..a sensible answer...

just use cat /etc/issue

linux keeps our brain active
Old 12-18-2007, 12:46 AM   #13
Registered: Jan 2002
Posts: 222

Rep: Reputation: 31
I used cat /etc/issue and got the following. I assume that will work with most mainstream Linux distros.

PCLinuxOS release 2007 (PCLinuxOS) for i586
Kernel on an i686 / \l
Old 01-17-2008, 03:47 PM   #14
LQ Newbie
Registered: Jan 2008
Posts: 1

Rep: Reputation: 1
Not a goofy question at all. I just got an Eee PC and knew it's runs Xandros but didn't know which version of Debian it's based on. This would be useful when searching for repos.

For the record, I looked in /etc/issue, as maanga mentioned, and found it's Debian 4.0 (etch).

As mentioned in maanga's link, /proc/version returned even more specific info: Debian 4.1.1-21.

1 members found this post helpful.
Old 01-26-2008, 12:12 PM   #15
LQ Newbie
Registered: Feb 2005
Posts: 2

Rep: Reputation: 0
Thumbs up SuSE answer

on suse run :

cd /etc

cat SuSE-release

this will give you the exact release number.


release, suse

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
How do I determine what version of Linux is running? DStrick64 Linux - Newbie 17 05-30-2012 09:29 AM
How do I find the version of linux I am running? aaronruss Linux - Newbie 4 06-15-2009 10:27 AM
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
what version am i running wedgeworth Linux - Newbie 2 04-08-2004 10:55 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:43 PM.

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