Linux Foundation Certified System Administrator (LFCS) — Question 48
What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.)
Answer options
- A. Entries for all possible devices get created on boot even if those devices are not connected.
- B. Additional rules for udev can be created by adding them to /etc/udev/rules.d/.
- C. When using udev, it is not possible to create block or character devices in /dev/ using mknod.
- D. The /dev/ directory is a filesystem of type tmpfs and is mounted by udev during system startup.
- E. The content of /dev/ is stored in /etc/udev/dev and is restored during system startup.
Correct answer: B, D
Explanation
Option B is correct because additional udev rules can indeed be created by placing files in /etc/udev/rules.d/. Option D is also correct, as the /dev/ directory is a tmpfs filesystem that is mounted by udev during the system startup. Options A, C, and E are incorrect; devices are not created for those that are not connected, mknod can still be used in some contexts, and /dev/ is not restored from /etc/udev/dev.