LFCS Exam QuestionsBrowse all questions from this exam

LFCS Exam - Question 95


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

Show Answer
Correct Answer: AC

To display all currently mounted filesystems, the commands 'cat /proc/self/mounts' and 'mount' can be used. The 'cat /proc/self/mounts' command reads the file that contains information about all currently mounted filesystems, making it a reliable source. The 'mount' command, when used without any options or arguments, displays the list of all currently mounted filesystems, providing detailed information about each one.

Discussion

1 comment
Sign in to comment
StribOptions: AC
Jun 17, 2023

The correct answers are A. cat /proc/self/mounts and C. mount. A. cat /proc/self/mounts: This command reads and displays the contents of the /proc/self/mounts file, which provides information about all currently mounted filesystems on the system. It is a reliable way to view the mounted filesystems. C. mount: The mount command without any options or arguments displays the currently mounted filesystems. It provides a detailed output that includes the mount point, filesystem type, options, and other information.

Strib
Jun 17, 2023

the other options for clarification: B. free: The free command is used to display information about system memory usage, not mounted filesystems. D. lsmounts: There is no standard command called lsmounts in most Linux distributions. E. cat /proc/filesystems: This command displays a list of supported filesystem types in the /proc/filesystems file, but it does not directly provide information about the currently mounted filesystems.