CompTIA Linux+ Powered by LPI (LX0-103) — Question 39
What does the command mount -a do?
Answer options
- A. It mounts all available filesystems onto the current directory.
- B. It shows all mounted filesystems.
- C. It mounts all user mountable filesystems for the current user.
- D. It mounts all filesystems listed in /etc/fstab which have the option auto set.
- E. It mounts all filesystems listed in /etc/fstab which have the option noauto set.
Correct answer: D
Explanation
The correct answer is D because the command mount -a specifically mounts all filesystems listed in /etc/fstab that have the auto option set, allowing for automatic mounting. Options A, B, and C do not accurately describe the command's functionality, and option E is incorrect as it refers to filesystems with the noauto option, which are not mounted by this command.