LinuxQuestions.org
Visit Jeremy's Blog.
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 04-07-2005, 02:29 PM   #1
safun75
LQ Newbie
 
Registered: Apr 2004
Posts: 2

Rep: Reputation: 0
How to find version of linux


Hi,

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.

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

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

Rep: Reputation: 53
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, 04:37 PM   #4
Genesee
Member
 
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, 12:04 AM   #5
irfanasim
LQ Newbie
 
Registered: Sep 2002
Posts: 10

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

Guys,

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

IK
 
Old 04-30-2008, 12:12 AM   #6
billymayday
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, 12:52 AM   #7
mike_mck2
LQ Newbie
 
Registered: Feb 2008
Location: Texas
Distribution: Slackware
Posts: 16

Rep: Reputation: 0
Why start a new one, when this one suffices?
 
Old 04-30-2008, 01:34 AM   #8
billymayday
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, 01:45 PM   #9
wheezyanna
LQ Newbie
 
Registered: May 2011
Posts: 1

Rep: Reputation: Disabled
Question

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

Rep: Reputation: 299Reputation: 299Reputation: 299
You can also use:

lsb_release -a

on most systems.
 
Old 05-22-2011, 02:34 PM   #11
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,566
Blog Entries: 2

Rep: Reputation: 4035Reputation: 4035Reputation: 4035Reputation: 4035Reputation: 4035Reputation: 4035Reputation: 4035Reputation: 4035Reputation: 4035Reputation: 4035Reputation: 4035
Seems to be common to resurrect this thread every 3 years. Why?
 
Old 05-22-2011, 03:05 PM   #12
brownk4
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, 01:43 AM   #13
dshu
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?).

Thanks.
 
Old 06-17-2011, 02:25 AM   #14
kingbeowulf
Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware64 14.1, Slackware 14.1
Posts: 519

Rep: Reputation: 137Reputation: 137
Look in /etc as often a file is placed there to indicate the distro version. For exanple:
Code:
$ 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 02:25 AM. Reason: spelling
 
Old 06-17-2011, 03:06 AM   #15
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Debian, SL
Posts: 5,216

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
@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.

Evo2.
 
  


Reply


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


All times are GMT -5. The time now is 02:28 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration