nerdexam
CompTIA

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.

Devices, Linux Filesystems, Filesystem Hierarchy Standard

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)
  • A
    88% (37)
  • B
    2% (1)
  • D
    2% (1)
  • E
    7% (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.

Acat /proc/self/mountsCorrect

/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.

Bfree

`free` reports system memory and swap usage and has no output related to mounted filesystems.

CmountCorrect

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.

Dlsmounts

`lsmounts` is not a standard Linux command and is not present in mainstream distributions.

Ecat /proc/filesystems

/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

#mount#/proc/self/mounts#mounted filesystems#filesystem status

Community Discussion

No community discussion yet for this question.

Full LX0-103 Practice