Which command shows active mounts and where they are mounted from?

Prepare for the Google Data Center Technician Exam. Use our interactive quiz featuring flashcards and multiple choice questions with hints and explanations. Get exam-ready today!

Multiple Choice

Which command shows active mounts and where they are mounted from?

Explanation:
You can see which filesystems are active and where they’re mounted from with the mount command. Running it without arguments asks the kernel for the current mount table and prints each mounted filesystem with its source and its mount point, so you get a direct view of the origin (what it’s mounted from) and where it appears in the directory tree. For example, an entry like “/dev/sda1 on / type ext4” shows the source device and the destination directory, immediately answering the question. This makes it the best choice for quickly confirming all active mounts and their origins. While df -h shows usage and the mount points, and lsblk can show mount points for devices, neither presents the complete active-mount-to-source mapping as directly as mount does. umount, of course, is for removing mounts.

You can see which filesystems are active and where they’re mounted from with the mount command. Running it without arguments asks the kernel for the current mount table and prints each mounted filesystem with its source and its mount point, so you get a direct view of the origin (what it’s mounted from) and where it appears in the directory tree. For example, an entry like “/dev/sda1 on / type ext4” shows the source device and the destination directory, immediately answering the question. This makes it the best choice for quickly confirming all active mounts and their origins. While df -h shows usage and the mount points, and lsblk can show mount points for devices, neither presents the complete active-mount-to-source mapping as directly as mount does. umount, of course, is for removing mounts.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy