Which system files are updated as devices are mounted and unmount to provide information on the mounted devices and the options used? (Please specify TWO answers)

A. /proc/dtab
B. /etc/mtab
C. /etc/fstab
D. /proc/mounts
E. /proc/devices

题解

选项 A,没有「/proc/dtab」文件。

选项 B,「/etc/mtab」文件用来记录已经被挂载的文件系统,其实这文件就是「/proc/self/mounts」文件的符号链接(symbolic link)。

选项 C,「/etc/fstab」文件用来设置自动挂载的文件系统。

选项 D,「/proc/mounts」文件用来记录已经被挂载的文件系统,其实这文件就是「/proc/self/mounts」文件的符号链接(symbolic link)。

选项 E,「/proc/devices」用来记录目前读取得到的设备。

所以答案是选项 B 和选项 D。