Posts Tagged With: kernel

Kernel Version

Tagged with: , , , , ,

Get the version of the kernal


cat /proc/version
OR
uname -r
No Comments »

Get Kernel Version

Tagged with: , , , ,

Show version of the kernel


cat /proc/version
No Comments »

lsmod – Show Loaded Kernel Modules

Tagged with: , , , , ,

This command shows the kernel modules that are currently loaded.


# lsmod

Module                  Size  Used by
vboxdrv                55088  0
autofs4                20421  2
ipt_MASQUERADE          6721  1
iptable_nat             9669  1
nf_nat                 18669  2 ipt_MASQUERADE,iptable_nat
nf_conntrack_ipv4      11717  2 iptable_nat
nf_conntrack           51977  4 ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4
....
No Comments »

Remove an existing Kernel

Tagged with: , , , ,

The final numbers(2.6.20.6) is the version of you kernel. You can get this using uname -r (for the current kernel)

rm -rf /lib/modules/2.6.20.6
rm /boot/System.map-2.6.20.6
rm /boot/vmlinuz-2.6.20.6
rm /boot/initrd-2.6.20.6.img
rm /boot/config-2.6.20.6
No Comments »

Compiling a 2.6 Linux kernel

Tagged with: , , , , ,

Get the latest Kernel from kernel.org

Get a default .config file

cp /boot/config-`uname -r` ./.config

OR

make defconfig

Then configure the kernel - the hardest part 🙁

make xconfig

Compile/Install it

make
make modules_install
make install

[tags]kernel,linux,command,compile,configure,xconfig[/tags]

No Comments »