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

Getting a list of all available kernel options

The "kernel-parameters.txt" file which stores all the Kernel options.

file location..

/usr/src/linux-2.4/Documentation/kernel-parameters.txt

Monday, December 17, 2007

Kernel commands

depmod - Create a module dependency list.
insmod - Install a module.
modinfo - Display information about a module.
kerneld - Run kernel program in user space.
ksyms - Display kernel symbols.
lsmod - List installed modules.
modprobe - Load or list loadable modules.
rmmod - Remove specified module.
sysctl - Configure kernel parameters at runtime.
uname - Display system information.

Monday, January 1, 2007