Академический Документы
Профессиональный Документы
Культура Документы
The kernel constitutes the core part of the Linux operating system.
KERNEL DUTIES:
Process scheduling: determines when processes should run and for how long.
Security: Constantly verifies filesystem permissions, SELinux contexts and firewall rules.
KERNEL IMAGES
KERNEL MODULES
o Modules are small kernel extensions that may be loaded and unloaded
o Compiled for a specific kernel version and are provided with the kernel RPM.
lsmod eth0
lsmod usb_storage
modprobe - program to add and remove modules from the Linux Kernel
modprobe usb_storage
modprobe -r eth0
modprobe -r usb_storage
modinfo ipv6
modinfo mii
insmod - simple program to insert a module into the Linux Kernel, it will not load
Note: modprobe and modprobe --remove <modulename> are the preferred methods to insert and
Device special files located under /dev are all tagged with three attributes:
major number
minor number
ls -l /dev/ttyS0
crw-rw---- 1 root uucp 4, 64 Sep 12 17:02 /dev/ttyS0
ls -l /dev/sdb1
Note: Notice that there is no file size, this field was replaced with 4, 64.
The major number determines which driver to access, whereas the minor number allows the driver to
DEVICE NODES:
BLOCK DEVICES
CHARACTER DEVICES
o Filenames
o Permissions
This creates a device file named usbkey and a symlink named usbstorage next time /dev/sdb gets
plugged.
mknod /dev/usbdevice b 8 0
/proc is a virtual filesystem containing information about the running kernel. Files under /proc
IP FORWARDING:
It is used to connect two different networks, ie., system is acting like a router
cat /proc/sys/net/ipv4/ip_forward
Note: /proc/sys modifications are temporary and not saved at system shutdown
vi /etc/sysctl.conf
net.ipv4.ip_forward = 1
sysctl -p
Note: sysctl is called at boot time by rc.sysinit and uses settings in
/etc/sysctl.conf
lspci and lsusb ==>list devices connected to the PCI and USB buses, respectively.
MEMORY:
free
vmstat
swapon -s
pmap
PROCESSES:
ps
top
gnome-system-monitor
KERNEL STATE:
uname
tload
KUDZU
Kudzu detects and configures new and/or changed hardware on a system. When started,
kudzu detects the current hardware, and checks it against a database stored in /etc/sysconfig/hwconf,
if one exists. It then determines if any hardware has been added or removed from the system. If so, it
gives the users the opportunity to configure any added hardware, and unconfigure any removed