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
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: shell command to find what linux kernel version have installed in unix box
POST# 203
Posted On: Fri Feb 29, 2008 12:01 pm
pinguin
Topic: 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


Sat Feb 10, 2007 7:22 am
1
lin
Reply #704
this is a great way to how to find what kernel i have thanks
Mon Feb 26, 2007 10:42 pm
2
Madhusudan Sahoo
Reply #705
Give me all commands in UNIX
Tue Jan 15, 2008 4:00 am
3
Deepak
Reply #706
how to find that which os in installed in our pc?
Wed Jan 30, 2008 9:07 pm
4
sushil
Reply #707
hi,this sushil iwant to know how the shell and kernel works in unix operating system

What do you think?

* name:  

* email:  

* Please enter comments:


Receive Replies on my Comments
(An email will be sent to you when someone replies to your comments)

Add image to comments
yes no             upload