Linux Kernel basics-general Linux technology-Linux programming and kernel information. I have a certain understanding of kernel-related concepts. The introduction of Linux kernel is vast. Here I will only introduce the related directories, files, and commands in the system.
/Boot
/Boot/vmlinuz- : Used to start the compressed kernel image, which is the compressed image in/arch // boot.
/Boot/system. map- : Stores the kernel symbol address.
/Boot/initrd. img- : When initializing a RAM hard disk, it is used to store the modules required to mount the root file system.
/Boot/grub/menu. lst: configuration file of grub. (It may be located in different locations in Different releases.
/Lib/modules
This directory contains kernel modules and other files. note that there are usually multiple directories in modules: the built-in kernel modules are here. After you compile your own kernel modules, they will also be installed here. different directories are differentiated by kernel version numbers. that is, the directory name in modules is the kernel version number. (use $ uname-r to know the directory of the modules used by the current system kernel ).
/Lib/modules/ /Build
Stores the files required to compile the new module for the kernel of this version. including Makefile ,. config, module. symVers (module Symbol Information), kernel header file (in include/, include/asm)
/Lib/modules/ /Kernel
Stores the target kernel File (suffixed with. ko). Its Directory organization is the same as that in the kernel source code.
/Lib/modules/ /Medium:
Modules. alias: module alias definition. The module loading tool uses it to load the corresponding module.
Modules. dep: defines the dependency between modules.
Modules. symbols: Specifies the module to which the symbol belongs.
These files are all text files. You can view them.
$ Uname-r
Uname (1) is used to view system information. What is useful here is its "-r" option, which displays kernel version information.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.