Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Question 26 of 42
Free Preview · 42 of 140 · questions 1–42 of 140 are free. Sign up free to sync your progress across devices.
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
Correct Answer: B - Empty directories only: Only empty directories can be used as mount points. This ensures that the contents of the mounted filesystem are not mixed with any existing files or directories.
Option A. Every existing directory can be used as a mount point is correct when talking about mount points. In Linux, a mount point is a directory that is used to access the contents of a filesystem. When you mount a filesystem, it is attached to a mount point and becomes accessible under that directory. Any existing directory can be used as a mount point. It does not have to be empty or have any special flags set. However, it is usually a good idea to use an empty directory as a mount point, because the contents of the mounted filesystem will be visible under that directory and might overwrite or conflict with any existing files. For example: mount /dev/sda1 /mnt This mounts the filesystem that is stored on the device /dev/sda1 at the mount point /mnt.
Option B: Only empty directories can be used as a mount point is not correct. Any existing directory can be used as a mount point, regardless of whether it is empty or not. Option C: Directories need to have the SetUID flag set to be used as a mount point is not correct. The SetUID flag is used to allow executables to be run with the permissions of their owner, rather than the permissions of the user who is running them. It has nothing to do with mount points. Option D: Files within a directory are deleted when the directory is used as a mount point is not correct. When a filesystem is mounted at a mount point, it becomes accessible under that directory, but the existing files in the directory are not deleted or overwritten. They are still accessible, although they might be hidden by the contents of the mounted filesystem.