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