Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-08-2006, 05:47 AM   #16
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 30

Originally Posted by lugoteehalt
Isn't there the command 'kernelversion'?
Yes, kinda - from the man page:
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
adoyle@minerva:~$ kernelversion 
which is not so useful as compared to
adoyle@minerva:~$ uname -r
and that works on all versions of Linux.

Hope this cleared things up!
Old 09-22-2010, 07:46 AM   #17
LQ Newbie
Registered: Sep 2010
Posts: 1

Rep: Reputation: 0
try this

more /etc/redhat-release gives you the version.
Old 05-30-2012, 09:29 AM   #18
Jon Blanchard
LQ Newbie
Registered: Feb 2012
Location: Franklin, TN
Distribution: Linux, AIX
Posts: 6

Rep: Reputation: Disabled
Thanks. This info is much appreciated.

Last edited by Jon Blanchard; 05-30-2012 at 09:35 AM.


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
I would like to be able to determine my kernel version. Gueron Linux - Newbie 3 10-10-2005 02:24 PM
Determine version of Linux OS? amiableboy Linux - Newbie 2 07-21-2005 04:16 AM
determine kernel version linuxmandrake Mandriva 1 05-28-2005 05:38 AM
how can i determine what version of XFree86 i am using? guitarfella Slackware 1 12-14-2004 09:59 PM
How to determine Kernel version stonesino Linux - General 2 03-13-2004 01:57 PM

All times are GMT -5. The time now is 11:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration