A Linux administrator is troubleshooting a storage issue and needs to inspect the list of all currently mounted filesystems, including their specific mount options (e.g., rw, noexec). Which of the following files provides the most direct and up-to-date information for this purpose?
The correct answer is /etc/mtab. This file, which on most modern systems is a symbolic link to /proc/mounts, contains a real-time list of all currently mounted filesystems and the options they were mounted with. The mount and umount commands maintain this information.
/etc/fstab is incorrect because it is a configuration file that defines which filesystems should be mounted at boot time, and its contents may not reflect the actual, current state of mounted devices.
/proc/mdstat is incorrect as it specifically shows the status of software RAID (MD) devices, not all mounted filesystems.
/etc/hosts is incorrect because it is used for static hostname-to-IP address resolution, not for storage management.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of /etc/mtab in Linux?
Open an interactive chat with Bash
How does /proc/mounts differ from /etc/fstab?
Open an interactive chat with Bash
What are mount options like rw and noexec?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
System Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access