LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Determining which Linux version I'm running (https://www.linuxquestions.org/questions/linux-general-1/determining-which-linux-version-im-running-164529/)

kfiralfia 03-31-2004 08:52 AM

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?

Nis 03-31-2004 08:57 AM

2.4.20 is your Linux version

kfiralfia 03-31-2004 09:14 AM

Is this the version of Redhat, or the version of Linux, or both?

Thanks.

Nis 03-31-2004 09:16 AM

Just the kernel version. The version of Red Hat you're running will be in /etc/redhat-version (I think).

JPL-JPL 11-25-2007 05:47 PM

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

Berhanie 11-25-2007 06:49 PM

Take a look here for the version files various distros put in etc/.

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

JPL-JPL 11-26-2007 05:03 AM

Quote:

Originally Posted by Berhanie (Post 2970533)
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


All times are GMT -5. The time now is 02:52 PM.