LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 02-12-2008, 08:15 AM   #16
mellowiz
LQ Newbie
 
Registered: Jun 2004
Posts: 3

Rep: Reputation: 0

On a Debian system:
$ cat /etc/issue.net
Debian GNU/Linux 4.0
$ cat /etc/debian_version
4.0
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 02-26-2010, 11:46 PM   #17
nsartor
LQ Newbie
 
Registered: Nov 2009
Posts: 1

Rep: Reputation: 1
Wink Super Newbie figs it out

[QUOTE=UpstreamSwimmer;3026265]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.

So I got completely lost trying to find out exactly this. I wanted to upgrade FireFox from ver 2 to 3.6 but I didn't know what distro. For the smart alecks who said look at the CD - first of all it's a DVD which is why I got this ASUS EEPC for free in the first place. It doesn't have a DVD and the guy who had it couldn't figure out how to load the OS even though it came with the disks.

Anyway I was able to load linux w/o difficulty but using the shell was new to me so just to clarify for the next newbie

First you have to get a console window open

2 ways

type "ctrl alt T"

or

open home (icon bottom left) then work/file manager/tools/open console window

you should see

/home/user>


type in

cat /proc/version


note the space beween cat and /proc

it should show something like this:

home/user> cat /proc/version
Linux version 2.6.21.4-eeepc (root@i386-coreos) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #2 Tue Jul 8 12:00:00 EDT 2008
/home/user>



Good luck newbies hope this helps any asus eee pc types.

P.S. Still haven't figured out how to update firefox
 
1 members found this post helpful.
Old 08-18-2010, 05:16 AM   #18
wlGibbons
LQ Newbie
 
Registered: Aug 2010
Posts: 1

Rep: Reputation: 1
opening old post bad i know

but i had to comment on the rudeness of some of the replies.
not everyone is using linux on their home pc which they installed. Not everyone who finds themselves on a linux machine is an expert who thinks re-installing their kernel once a week is fun.

There are many ways of finding yourself on a linux machine, most of these are not by choice.
 
1 members found this post helpful.
Old 08-28-2010, 07:30 AM   #19
cercatrova
LQ Newbie
 
Registered: Aug 2010
Posts: 1

Rep: Reputation: 0
another way...

lsb_release -a
 
Old 08-15-2011, 03:01 PM   #20
blondezilla
LQ Newbie
 
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
Thank you, this helped me out greatly. For those that laughed at not knowing what version of linux is running - it's only laughable if 'you' in fact installed it. If you are shelling into a linux O/S that you need to install drivers to than this is a very useful tool.
 
1 members found this post helpful.
Old 10-23-2011, 12:18 PM   #21
seeker9969
LQ Newbie
 
Registered: Oct 2011
Posts: 5

Rep: Reputation: Disabled
I do not know which version of linux got installed or the commands that go with it.

Ya know it may seem like a dumb question but I found myself asking it this AM I downloaded gnome 3 and it was 900 mb file and installed it. I seriously do not know which version i am running now I tried to go to terminal and update with the sudo command but it does not work. I am clueless as to what commands to use So I used the command "uname -a && cat /etc/*release"
it came up with this.
Linux linux-imqh 2.6.37.6-0.7-default #1 SMP 2011-07-21 02:17:24 +0200 i686 athlon i386 GNU/Linux
openSUSE 11.4 (i586)
VERSION = 11.4
CODENAME = Celadon
Any help here would be good because none of the commands that I know are working.
help
 
Old 10-23-2011, 12:23 PM   #22
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
The output already shows that you are running the 32 bit version (i686) of openSuse 11.4, what else do you want to know?
 
Old 10-23-2011, 04:26 PM   #23
seeker9969
LQ Newbie
 
Registered: Oct 2011
Posts: 5

Rep: Reputation: Disabled
I guess I am good now After I posted that message I didn't even know that opensuse was a version on linux. Now I do
thanks for the reply though
Al
 
Old 10-16-2012, 11:42 AM   #24
blumax32
LQ Newbie
 
Registered: Oct 2012
Distribution: Debian
Posts: 1

Rep: Reputation: Disabled
Webmin has a lot of information including what version you are running.
 
Old 05-11-2013, 06:16 PM   #25
sgonz
LQ Newbie
 
Registered: May 2010
Posts: 1

Rep: Reputation: 0
Cool Debian

/etc/os-release
PRETTY_NAME="Debian GNU/Linux 7.0 (wheezy)"
NAME="Debian GNU/Linux"
VERSION_ID="7.0"
VERSION="7.0 (wheezy)"

cat /etc/debian_version
7.0

lsb_release -a
Distributor ID: Debian
Description: Debian GNU/Linux 7.0 (wheezy)
Release: 7.0
Codename: wheezy
 
Old 07-31-2013, 08:14 AM   #26
tjordanchat
LQ Newbie
 
Registered: Jul 2013
Posts: 1

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

Here is a handy alias for that.

alias urel="lsb_release -a;cat /proc/version;uname -a;cat /etc/*-release"
 
Old 05-13-2014, 01:04 PM   #27
terrypen
LQ Newbie
 
Registered: May 2014
Posts: 3

Rep: Reputation: Disabled
Reason for not knowing my version of Linux!!

Quote:
Originally Posted by bulliver View Post
uname -a && cat /etc/*release
I know that this is a really old thread, but it helped me!

Thanks bulliver!

For all the people that said.. "There is no way you can't know what version of Linux you installed!"
Here is a reason!
I am taking a Harvard course and they have an appliance to download and run in VirtualBox. I did that and now I am running a version of Linux that I did not install so I have no idea what they used. I am still a newbie in the Linux world and now need to figure out the version of linux so I can change the networking after I did the software updates that killed the networking that was working.
Generic release 19 (Generic)
NAME=Generic
VERSION="19 (Generic)"
ID=generic
VERSION_ID=19
PRETTY_NAME="Generic 19 (Generic)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:generic:generic:19"
Generic release 19 (Generic)
Generic release 19 (Generic)

Terry

P.S. cat /proc/version actually gave more information and displayed "Red Hat 4.8.1-1"

Last edited by terrypen; 05-13-2014 at 01:18 PM. Reason: added better command
 
1 members found this post helpful.
Old 05-13-2014, 02:03 PM   #28
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,424
Blog Entries: 6

Rep: Reputation: 796Reputation: 796Reputation: 796Reputation: 796Reputation: 796Reputation: 796Reputation: 796
Reboot and watch the console?
 
Old 05-16-2014, 01:36 PM   #29
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,855

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
@terrypen: pretty much any distro from the last year of so will have /etc/os-release. It is a standard release file introduced by those who brought you systemd. In this case I think it was a good idea and distros that have avoided systemd also have it, e.g. Slackware. Internal formatting is also standardised.
 
Old 05-16-2014, 02:59 PM   #30
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,381

Rep: Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109
You might also find useful information in something like /proc/version or something like that.

Probably, though, a parse of the result of the uname command would be the most-generic way to do it.
 
  


Reply

Tags
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


All times are GMT -5. The time now is 11:28 PM.

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