LinuxQuestions.org
Review your favorite Linux distribution.
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 03-31-2004, 08:52 AM   #1
kfiralfia
LQ Newbie
 
Registered: Mar 2004
Posts: 5

Rep: Reputation: 0
Determining which Linux version I'm running


Obvious newbie here.

I'm trying to determine which version of Linux my server is running by typing the command 'uname -r'.

The result I get is

2.4.20-19.7

However, this doesn't look like a legitimate Linux version to me, or am I reading it wrong?

Any ideas?
 
Old 03-31-2004, 08:57 AM   #2
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
2.4.20 is your Linux version
 
Old 03-31-2004, 09:14 AM   #3
kfiralfia
LQ Newbie
 
Registered: Mar 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Is this the version of Redhat, or the version of Linux, or both?

Thanks.
 
Old 03-31-2004, 09:16 AM   #4
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
Just the kernel version. The version of Red Hat you're running will be in /etc/redhat-version (I think).
 
Old 11-25-2007, 05:47 PM   #5
JPL-JPL
LQ Newbie
 
Registered: Nov 2007
Location: Sweden, top of the world
Distribution: OpenBSD, Debian, Ubuntu, Kubuntu
Posts: 2

Rep: Reputation: 0
Determine version of Ubuntu

jlind@matroska:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=7.10
DISTRIB_CODENAME=gutsy
DISTRIB_DESCRIPTION="Ubuntu 7.10"
jlind@matroska:~$

Other dist's put similar files in /etc, look for a small text file that has a fitting name.

file(1) is your friend.

-- JPL
 
Old 11-25-2007, 06:49 PM   #6
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Take a look here for the version files various distros put in etc/.

[edit]
JPL-JPL, this thread's more than 3 years old.

Last edited by Berhanie; 11-25-2007 at 06:52 PM.
 
Old 11-26-2007, 05:03 AM   #7
JPL-JPL
LQ Newbie
 
Registered: Nov 2007
Location: Sweden, top of the world
Distribution: OpenBSD, Debian, Ubuntu, Kubuntu
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by Berhanie View Post
Take a look here for the version files various distros put in etc/.

[edit]
JPL-JPL, this thread's more than 3 years old.
Thanks, great info, though this page still ranks high when googling, and there is a value in that as well.

over and out
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I tell what version of Linux is running? IamSancho Linux - General 37 07-25-2014 12:18 PM
Determining currently running distribution ChillyWillie Linux - Distributions 6 08-31-2005 12:41 PM
Determining Linux version and kernel versoin csross Linux - Software 4 06-25-2004 11:00 AM
Determining running time of video with mplayer miknight Linux - Software 2 05-25-2004 09:11 AM
Determining USB Version rampentpenguin Linux - Hardware 1 03-09-2004 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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