LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I determine what version of Linux is running? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-determine-what-version-of-linux-is-running-131169/)

Dtsazza 04-08-2006 05:47 AM

Quote:

Originally Posted by lugoteehalt
Isn't there the command 'kernelversion'?:)

Yes, kinda - from the man page:
Quote:

kernelversion is a small program for Debian/GNU Linux to report the major version of the kernel. This version is used by the modutils package to calculate the directories for kernel modules. See /etc/modules.conf for a sample usage.
So it seems it's only available for Debian. Still, it's not that useful; using it only gives the major version, as in
Code:

adoyle@minerva:~$ kernelversion
2.6

which is not so useful as compared to
Code:

adoyle@minerva:~$ uname -r
2.6.12

and that works on all versions of Linux.

Hope this cleared things up!
Andrzej

k.avinosh@gmail.com 09-22-2010 07:46 AM

try this
 
more /etc/redhat-release gives you the version.

Jon Blanchard 05-30-2012 09:29 AM

Thanks. This info is much appreciated.


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