Chapter 16. Linux Kernel Flashcards
Which command shows the current version of the kernel that is used on your computer?
uname -r shows the current version of the kernel on a computer.
Where do you find current version information about your RHEL 8 installation?
Current version information about your RHEL 8 installation is found in /etc/redhat-release.
Which command shows a list of kernel modules that currently are loaded?
lsmod shows a list of currently loaded kernel modules.
Which command enables you to discover kernel module parameters?
“modinfo modulename” displays kernel module parameters.
How do you unload a kernel module?
modprobe -r unloads a kernel module.
What can you do if you get an error message while trying to unload a kernel module?
Use lsmod to find out which other kernel modules currently need this kernel module and unload these kernel modules first. Note that this will not always work, especially if the considered hardware currently is in use.
How do you find which kernel module parameters are supported?
Use modinfo to find which kernel module parameters are supported.
Where do you specify kernel module parameters that should be used persistently?
Create a file in /etc/modprobe.d and include the parameters using an options statement.
Assuming that the cdrom module has a parameter debug, which must be set to 1 to enable debug mode, which line would you include in the file that will automatically load that module?
include options “cdrom debug=1” in the file that will automatically load the cdrom module.
How do you install a new version of the kernel?
“yum upgrade kernel” installs a new version of the kernel.
What causes a tainted kernel?
a. A kernel driver that is not available as an open source driver
b. A driver that was developed for a different operating system but has been ported to Linux
c. A driver that has failed
d. An unsupported driver
A.
A tainted kernel is caused by drivers that are not available as open source drivers. Using these may have an impact on the stability of the Linux operating system, which is why it is good to have an option to recognize them easily.
What is the name of the command that shows kernel events since booting?
a. logger
b. dmesg
c. klogd
d. journald
B.
The dmesg utility shows the contents of the kernel ring buffer. This is the area of memory where the Linux kernel logs information to, so it gives a clear overview of recent kernel events.
Which command enables you to find the actual version of the kernel that is used?
a. uname -r
b. uname -v
c. procinfo -k
d. procinfo -l
A.
The uname -r command shows the current kernel version. The uname -v command gives information about the hardware in your computer, and the procinfo command does not exist.
Which command shows the current version of RHEL you are using?
a. uname -r
b. cat /proc/rhel-version
c. cat /etc/redhat-release
d. uname -k
C.
The “/etc/redhat-release” version contains information about the current version of RHEL you are using, including the update level.
What is the name of the process that helps the kernel to initialize hardware devices properly?
a. systemd-udevd
b. hwinit
c. udev
d. udevd
A.
On a systemd-based operating system such as RHEL 8, the systemd-udevd process takes care of initializing new hardware devices.