Results 1 to 6 of 6
How do u obtain the version of the kernel i am currently using?? I am using Red Hat (9.0) shrike.. is there a command or configuration file for the same.....
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-28-2005 #1Just Joined!
- Join Date
- Nov 2005
- Posts
- 24
Finding the version of the kernel
How do u obtain the version of the kernel i am currently using?? I am using Red Hat (9.0) shrike.. is there a command or configuration file for the same..
- 11-28-2005 #2Just Joined!
- Join Date
- Oct 2003
- Location
- The Netherlands
- Posts
- 89
take a look at "uname". it gives you exactly what you want to know.
run "uname -a" for a nice overview.
- 12-04-2005 #3
If you just want the kernel version, for a script perhaps or other purposes, use 'uname -r', the -a option will present all of the available information which may or may not be what you need. See the man page, 'man uname', for all the avilable options.
Great GNU/Linux references and resources:
The Linux Documentation Project
Rute User's Tutorial and Exposition
GNU/Linux Man Pages
- 12-15-2005 #4Just Joined!
- Join Date
- Dec 2005
- Location
- tr
- Posts
- 3
You can learn kernel version
*1*****************
with uname
-r, --kernel-release
Print the release number of the kernel.
-s, --kernel-name
Print the name of the kernel (Linux). This is the default action.
-v, --kernel-version
Print build information about the kernel.
like
$uname -r
*2*******************
$cat /etc/proc
*3********************
u can write small program as like uname() bash functions /usr/src/linux...kernelsources
in there u should find /include/linux/version.h
....
#define UTS_RELEASE "2.6.0"
#define UTS_RELEASE "2.6.0"
#define LINUX_VERSION_CODE 132608
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) <<
+ (c))
u can post it ur source
- 12-26-2005 #5Just Joined!
- Join Date
- Dec 2005
- Posts
- 1
the command is uname -r
- 10-06-2006 #6Just Joined!
- Join Date
- May 2005
- Location
- tanjore
- Posts
- 5
use uname -r
Originally Posted by superghost
see man pages for uname
regards
vijay.G


Reply With Quote
