1.2 Given a scenario, install, configure, and monitor kernel modules Flashcards

1
Q

lsmod

A

lsmod will list the modules that are currently loaded

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

insmod

A

The low-level insmod utility requires a full module file name in order to insert a module into the kernel, which can be cumbersome. In addition, it does not load any module dependencies

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

modprobe

A

The modprobe utility only requires the module’s name. to install a module

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

modinfo

A

modinfo provides detailed module data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

dmesg

A

dmesg displays the current kernel ring buffer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

rmmod

A

rmmod is used to remove(unload) a module with no dependencies

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

depmod

A

You can employ the depmod command to scan through the system looking for any hardware that was not automatically detected. This is useful for troubleshooting problems with new devices

the depmod utility scans the system, determines any needed modules, reviews the modules’ dependencies, and updates the appropriate modules.dep file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

modprobe -r

A

The modprobe utility is useful for removing modules that have one or more dependencies. You just need to add the -r switch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What extension do kernel files use?

A

Kernel modules files have a .ko file extension

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Where are kernel module files typically stored?

A

typically located in a subdirectory of the /lib/modules/ directory.

There is a subdirectory for each particular Linux kernel version.

Some distributions have additional directories, such as /usr/lib/modules/, which are hard linked to the /lib/modules/ directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Where are the locations of module configuration files?

A

Older Linux distributions use a single file, /etc/modules.conf, as their kernel modules configuration file

More modern distributions use configuration directories, which can be the
/etc/modprobe.d/

/etc /modules-load.d

/lib/modprobe.d/
/usr/lib/modprobe.d/

/run /modprobe.d/ directory.

Within configuration directories, module configuration files have a .conf file extension

How well did you know this?
1
Not at all
2
3
4
5
Perfectly