Find the source device, filesystem type, and mount options for /srv/docs.
Do not change mount state.
Which command is appropriate?
findmnt TARGET searches the mount table and shows source, filesystem type, options, and related fields in a structured view.
Detailed explanation
mount -o remount /srv/docsIncorrect. remount changes the existing mount configuration.
Incorrect. remount changes the existing mount configuration.
findmnt /srv/docsCorrect. findmnt /srv/docs displays the mount metadata.
Correct. findmnt /srv/docs displays the mount metadata.
umount /srv/docsIncorrect. umount detaches the filesystem.
Incorrect. umount detaches the filesystem.
mkfs /srv/docsIncorrect. mkfs creates a filesystem rather than inspecting a mount.
Incorrect. mkfs creates a filesystem rather than inspecting a mount.
Try it yourself
An example you can run in a temporary verification environment.
findmnt / | sed -n '1,4p'Expected result
rootに対応するTARGET、SOURCE、FSTYPE、OPTIONSKey points
- findmnt is read-only
- Source, type, and options are shown
- It does not remount
Notes
- Environment: util-linux findmnt / 読み取り操作
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.