In order to display all currently mounted filesystems, which of the following commands could be used? (Choose TWO correct answers.)

A.

cat /proc/self/mounts

B.

free

C.

mount

D.

lsmounts

E.

cat /proc/filesystems

题解

「cat」指令可以输出文件内容,「free」指令可以用来显示目前系统的主内存和置换空间的分配情形,「mount」指令可以用来挂载文件系统。

选项 A,正确答案,「/proc/self/mounts」文件内容为目前挂载的文件系统的参数。

选项 B,错误答案。

选项 C,直接运行「mount」指令会显示出「/proc/self/mounts」的文件内容。

选项 D,没有「lsmounts」指令。

选项 E,「/proc/filesystems」的文件内容为目前 Linux Kernel 支持(已加载)的所有文件系统,如果文件系统名称前面有「nodev」,表示这个文件系统不是用在区块类型的设备(如硬盘)。