Tuesday, December 18, 2007

Kernel manipulation commands


Userful commands for knowing the kernel

1.The command is used to get the kernel version

cat /usr/include/linux/version.h

2.You can get the Linux version of the currently executing kernel by,

cat /proc/version   or   'uname -a'

3.The command used to check your architecture

 'uname -i'

3.You can get the current Loadable kernel module from

"/sbin/lsmod"  same as "cat /proc/modules"


4. Load a module with out dependency in to running kernel.

rmmod module name
insmod module name

5.Load a kernel module with dependency by ,

/sbin/modprobe  kernel module name 

(modprobe attempts to load the module from the /lib/modules//kernel/drivers/.)


Knowledge base entry by: Venkat

No comments: