Find the answer to your Linux question:
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.
  1. #1
    Just 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..

  2. #2
    Just 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.

  3. #3
    Linux User Krendoshazin's Avatar
    Join Date
    Feb 2005
    Location
    London, England
    Posts
    471
    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.

  4. $spacer_open
    $spacer_close
  5. #4
    Just 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

  6. #5
    Just Joined!
    Join Date
    Dec 2005
    Posts
    1

    Lightbulb

    the command is uname -r

  7. #6
    Just Joined!
    Join Date
    May 2005
    Location
    tanjore
    Posts
    5
    Quote Originally Posted by superghost
    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..
    use uname -r
    see man pages for uname
    regards
    vijay.G

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •