Linux Filesystem: Commands to Display Mounted Filesystems

The answer to the question "In order to display all currently mounted filesystems, which of the following commands could be used? (Choose TWO correct answers.)" is presented in this page.

Question

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

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

AC

The correct answers are A. cat /proc/self/mounts and C. mount.

Explanation:

A. cat /proc/self/mounts This command displays all currently mounted filesystems on the system by reading the mounted filesystem information from the /proc/self/mounts file.

B. free This command is used to display the amount of free and used memory in the system, not mounted filesystems.

C. mount This command is used to mount a filesystem or display information about the currently mounted filesystems on the system. By running the command without any arguments, it displays a list of all mounted filesystems.

D. lsmounts This is not a valid command. The correct command is 'ls' followed by the directory where the mounted filesystems are located, such as /mnt.

E. cat /proc/filesystems This command displays the filesystem types supported by the kernel, not the currently mounted filesystems.

Therefore, options A and C are correct answers for the question as they can display all currently mounted filesystems.