198 KiB
198 KiB
1 | 1. D. The udevadm command is used to work with the udev interface of the kernel, and the |
---|---|
2 | monitor subcommand displays kernel uevents and other udev events in real time. |
3 | 2. B. Current IRQ assignments are contained in the file /proc/interrupts. Therefore, |
4 | viewing the contents of the file with a command such as cat will work. There is no “view” |
5 | command, making option A incorrect. Likewise, there is no /dev/irq file, making options |
6 | C and D incorrect. |
7 | 3. D. Configuration files for udev are found in /etc/udev, which makes option D correct. |
8 | The other options do not exist. |
9 | 4. A. The modprobe command loads the module and its dependencies, if applicable. The |
10 | lsmod command is used to list currently loaded modules, making option B incorrect. The |
11 | insmod command will load a given module but not its dependencies. Option D, rmmod, is |
12 | used to remove a module from memory. |
13 | 5. B. The lsusb command is used to obtain a basic list of USB devices on a system. The other |
14 | commands are not valid. In the case of option D, the ls command is valid, but there is no |
15 | --usb option. |
16 | 6. B. The info command for udevadm enables querying for additional information about a |
17 | hotplug device managed with udev. |
18 | 7. D. The dmesg command displays the contents of the kernel ring buffer. On many Linux |
19 | distributions, this log is also saved to /var/log/dmesg. The other options shown for this |
20 | question are not valid commands. |
21 | 8. C. Runlevel 1, sometimes displayed as runlevel s or S, is single-user mode in which many |
22 | services are not started. Runlevels 5 and 6 are used for other purposes, and runlevel SU is |
23 | not a valid option. |
24 | 9. D. Scripts are stored in /etc/init.d on a system using SysV init. You may sometimes |
25 | find these linked from /etc/rc.d/init.d as well. The other options are not valid for this |
26 | question. |
27 | 10. A. The init command can be used to access different runlevels. Runlevel 6 is used for |
28 | rebooting the system. Option B will shut down the system entirely, not reboot it. Option C |
29 | will place the system into single-user mode. Option D is not a valid option. |
30 | 11. C. The telinit command can be used to refresh the system after changes have been made |
31 | to /etc/inittab. Notably, option B will reboot the system but that was not an option in |
32 | the question. Options A and D are not valid commands. |
33 | 12. D. The runlevel command displays the current runlevel for a system. Option B is not a |
34 | valid option to the init command, and adding sudo in front of the init command makes |
35 | no difference. Option A is not a valid command. |