Kernel commands
Modinfo + module Name: View module information
Lsmod: View modules running in the current kernel
Insmod + module Path: Load module
Modprobe + module Name: Loading module
MODPROBE-R Module Name: Unload module
RMMOD Module Name: Unload module
modifying kernel parameters
1 echo VALUE >/proc/sys/kernel/hostname
2 sysctl-w kernel.hostname= "VALUE"
Both of the above are effective immediately and cannot be permanently valid
3 vi/etc/sysctl.conf
Modify the configuration file to be permanent, but not effective immediately
You can execute the following command to make it effective immediately
Sysctl-p, this configuration file will be re-read to make it effective
To compile the kernel method:
Download a similar version of the kernel, unzip,
Copy/boot/config file to the extracted directory, for. config
Perform:
Make Menuconfig
Make
Make Modules_install
Make install
Compiling the kernel is a relatively hard work, time is longer, half an hour to five hours,
All try not to use remote compilation,
If you are not using remote compilation, you can use the screen command
Yum-y Install screen
Screen-ls (display screen)
Ctrl+a,d (Demolition screen)
Screen (new)
Screen-r ID (Restore screen)
This article is from the IT Network Tanuvi blog, be sure to keep this source http://03301216.blog.51cto.com/4550876/1788495
Linux kernel compilation