LX0-103 · Question #96
In order to display all currently mounted filesystems, which of the following commands could be used? (Choose TWO correct answers.)
The correct answer is A. cat /proc/self/mounts C. mount. Both mount (run without arguments) and cat /proc/self/mounts display the list of all currently mounted filesystems on a Linux system.
Question
In order to display all currently mounted filesystems, which of the following commands could be used? (Choose TWO correct answers.)
Options
- Acat /proc/self/mounts
- Bfree
- Cmount
- Dlsmounts
- Ecat /proc/filesystems
How the community answered
(42 responses)- A88% (37)
- B2% (1)
- D2% (1)
- E7% (3)
Why each option
Both `mount` (run without arguments) and `cat /proc/self/mounts` display the list of all currently mounted filesystems on a Linux system.
/proc/self/mounts is a kernel-maintained virtual file reflecting the active mount namespace of the calling process, listing every mounted filesystem with its device, path, type, and options in real time.
`free` reports system memory and swap usage and has no output related to mounted filesystems.
Running `mount` with no arguments reads and prints /proc/self/mounts (or /proc/mounts), producing a human-readable list of all currently active mount points.
`lsmounts` is not a standard Linux command and is not present in mainstream distributions.
/proc/filesystems lists filesystem types the running kernel supports or has loaded as modules, not the filesystems that are currently mounted.
Concept tested: Commands to display currently mounted filesystems
Source: https://man7.org/linux/man-pages/man8/mount.8.html
Topics
Community Discussion
No community discussion yet for this question.