Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-07-2005, 03:29 PM   #1
LQ Newbie
Registered: Apr 2004
Posts: 2

Rep: Reputation: 0
How to find version of linux


can someone please tell me what is the command to find what version of linux is installed? Also how to find the flavour of unix installed.

Would appreaciate the response.

Old 04-07-2005, 03:31 PM   #2
LQ Newbie
Registered: Apr 2005
Location: Belgium
Distribution: Debian
Posts: 18

Rep: Reputation: 0
uname -a
Old 04-07-2005, 05:12 PM   #3
Senior Member
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
linux IS a flavour of unix, as are solaris, BSD....etc.
If by "version of linux" you mean the version of the compiled kernel currently running then the command by the above poster will do, or:
uname -r
Old 04-07-2005, 05:37 PM   #4
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
safun75 -

note that "Linux" can refer specifically to the kernel, although it is also generally used for a distribution on the whole.

each distribution is a collection of applications, assigned an overall version number arbitrarily by each distribution creator. you cannot conclude anything by comparing the version numbers between different distros. the method to find a version of a distro will depend on which you are using.
Old 04-30-2008, 01:04 AM   #5
LQ Newbie
Registered: Sep 2002
Posts: 10

Rep: Reputation: 0
How to find out which distribution of Linux machine is running?


Is there command in Linux to find out which linux distribution the machine is running? e.g. RedHat, Debian, SUSE, UBUNTU etc

Thanks in advance

Old 04-30-2008, 01:12 AM   #6
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try /etc/release or similar

Note that you've dragged up a really old thread here. Start a new one next time
Old 04-30-2008, 01:52 AM   #7
Registered: Feb 2008
Location: Texas
Distribution: Slackware
Posts: 41

Rep: Reputation: 1
Why start a new one, when this one suffices?
Old 04-30-2008, 02:34 AM   #8
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
So the poor guys who atarted the thread 3 years ago don't get irrelevant reminders if nothing else.
Old 05-22-2011, 02:45 PM   #9
LQ Newbie
Registered: May 2011
Posts: 1

Rep: Reputation: Disabled

i suspect you want this
cat /etc/*-release
1 members found this post helpful.
Old 05-22-2011, 03:26 PM   #10
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
You can also use:

lsb_release -a

on most systems.
Old 05-22-2011, 03:34 PM   #11
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4870Reputation: 4870Reputation: 4870Reputation: 4870Reputation: 4870Reputation: 4870Reputation: 4870Reputation: 4870Reputation: 4870Reputation: 4870Reputation: 4870
Seems to be common to resurrect this thread every 3 years. Why?
Old 05-22-2011, 04:05 PM   #12
LQ Newbie
Registered: Mar 2011
Posts: 4

Rep: Reputation: 0
hai it is good to meet you all after a long time
Old 06-17-2011, 02:43 AM   #13
LQ Newbie
Registered: Jun 2011
Posts: 2

Rep: Reputation: Disabled
This is a good question, despite what you all might think. I have a readyNas system that is running some flavor of linux but both methods in this thread don't work.

There is nothing in /etc/*-release*

And lsb_release is a command that is not found anywhere.

uname is not what I'm looking for, I know the hostname and kernal number, I'm looking for the linux flavor (distro?).

Old 06-17-2011, 03:25 AM   #14
Senior Member
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,082
Blog Entries: 11

Rep: Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513
Look in /etc as often a file is placed there to indicate the distro version. For exanple:
$ cat /etc/slackware-version
Slackware 13.37.0
It could be any sort of weird file name. Also, sometimes the kernel has it, try 'uname -a'

Last edited by kingbeowulf; 06-17-2011 at 03:25 AM. Reason: spelling
Old 06-17-2011, 04:06 AM   #15
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,135

Rep: Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493
@dshu if it is some off the shelf nas box, then you will have some sort of embedded linux probably with busybox and a specialised libc, possibly put together in house by the hardware manufacture.

Have a poke around the file system (/etc in particular). Also, you should be able to find out exactly what you are running by going to the web site of the manufacturer: the source code should be available there.



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
How to find Linux kernel & gcc version taichiman Linux - Hardware 4 04-12-2016 10:20 PM
How do I find the version of linux I am running? aaronruss Linux - Newbie 4 06-15-2009 11:27 AM
Find linux version using console? carlosos Linux - Newbie 11 08-17-2005 10:28 PM
Find out distribution + version (NOT: kernel version!) Tajci Red Hat 5 06-08-2005 04:17 PM
what version of Linux and where to find rpm rkonda99 Linux - Newbie 11 06-14-2003 08:47 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:37 AM.

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