Shell Command To Find What Linux Kernel Version Have Installed In Unix Box

Mobile
feeds
Welcome Login | Register

Shell Command To Find What Linux Kernel Version Have Installed In Unix Box
  Forums Index
      » Linux Hosting Forums
        » » Shell Command To Find What Linux Kernel Version Have Installed In Unix Box



Shell Command To Find What Linux Kernel Version Have Installed In Unix Box
Post Description:
Post Tags: shell, command, to, find, what, linux, kernel, version, have, installed, in, unix, box, linux hosting, troubleshoot, help, support advise, questions, answers
This Post Has Been Viewed 6539 Times Since Sat Jan 13, 2007 3:04 pm Posted By pinguin with 7 replies
Next Post »» Linux Tar Getting Removing leading `/' from member names When Executed
Shell Command To Find What Linux Kernel Version Have Installed In Unix Box
today i wanted to find out what kernel version i had installed in my server, i can't believe i cound remember the command to find what version i had installed in my server linux box, but i found it, so just in case anyone outhere is also having the same question i will give you the command.

note, this worked for me, i have fedora core on my server, which i think will also work on red had, centos, but not sure if it will work on other distributions like suse, mandrake or Debian.


     Code:
rpm -qa | grep 'kernel'


here are some others, but the one above worked great for me


     Code:
$ rpm -q kernel kernel-headers kernel-ibcs kernel-pcmcia-cs kernel-source

kernel-2.0.36-0.7
kernel-headers-2.0.36-0.7
kernel-ibcs-2.0.36-0.7
kernel-pcmcia-cs-2.0.36-0.7
kernel-source-2.0.36-0.7

$ rpm -q mkinitrd SysVinit initscripts

mkinitrd-1.8-3
SysVinit-2.74-5
initscripts-3.78-1


If you have Red Hat Linux 4.2 on your machine, you will need to change the query slightly to reflect name changes in packages that occurred in the Red Hat Linux 5.x series of releases.

     Code:
$ rpm -q kernel kernel-headers kernel-source iBCS pcmcia-cs

kernel-2.0.35-0
kernel-headers-2.0.35-0
kernel-modules-2.0.35-0
kernel-source-2.0.35-0
iBCS-2.0-8
pcmcia-cs-2.9.12-0

$ rpm -q mkinitrd SysVinit initscripts

mkinitrd-1.7-1
initscripts-2.96-1
SysVinit-2.64-8



Leave Your Comments






Share
URL:
You can use this HTML code to put it on your website to show your friends this wallpaper. Use this code on your profile like myspace, friendster, Facebook or others. Just Copy and Paste it in your HTML on your websites



Fourms BBCODE:
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums





Comments and replies About Shell Command To Find What Linux Kernel Version Have Installed In Unix Box




:: 1 :: Reply #307 Reply By lin On Sat Feb 10, 2007 7:22 am
this is a great way to how to find what kernel i have thanks
:: 2 :: Reply #614 Reply By Madhusudan Sahoo On Mon Feb 26, 2007 10:42 pm
Give me all commands in UNIX
:: 3 :: Reply #36496 Reply By Deepak On Tue Jan 15, 2008 4:00 am
how to find that which os in installed in our pc?
:: 4 :: Reply #39007 Reply By sushil On Wed Jan 30, 2008 9:07 pm
hi,this sushil iwant to know how the shell and kernel works in unix operating system
:: 5 :: Reply #59569 Reply By jesus On Fri Jun 27, 2008 7:11 pm
uname -r

that one works well
:: 6 :: Reply #71275 Reply By Hajo Hein On Sat Sep 20, 2008 6:53 am
das shell-kommando rpm -qa | grep 'kernel'
funktioniert auch bei suse linux vers. 9.1
(um die aktuelle kernelverson festzustellen)
:: 7 :: Reply #78147 Reply By kalyankumar On Wed Oct 29, 2008 12:59 am
ya thanks for your valuable answer