CompTIA Linux+ Powered by LPI (LX0-103) — Question 23
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 command mount -a is designed to mount all file systems specified in /etc/fstab that have the option auto, which is why option D is correct. Option A is incorrect because it refers to noauto, which excludes those file systems from automatic mounting. Options B and C do not pertain to the mounting process, and option E is incorrect as it implies mounting all file systems without regard to their specified options.