Linux Foundation Certified System Administrator (LFCS) — Question 40
What does the command mount -a do?
Answer options
- A. It ensures that all file systems listed with the option noauto in /etc/fstab are mounted.
- B. It shows all mounted file systems that have been automatically mounted.
- C. It opens an editor with root privileges and loads /etc/fstab for editing.
- D. It ensures that all file systems listed with the option auto in /etc/fstab are mounted.
- E. It ensures that all file systems listed in /etc/fstab are mounted regardless of their options.
Correct answer: D
Explanation
The correct answer is D because the command mount -a mounts all file systems that are specified with the auto option in /etc/fstab. Option A is incorrect as it refers to the noauto option, which prevents automatic mounting. Options B and C are unrelated to the function of mount -a, while option E incorrectly suggests that it mounts all file systems without considering their specified options.