Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam LFCS topic 1 question 26 discussion

Actual exam question from Linux Foundation's LFCS
Question #: 26
Topic #: 1
[All LFCS Questions]

Which of the following is correct when talking about mount points?

  • A. Every existing directory can be used as a mount point.
  • B. Only empty directories can be used as a mount point.
  • C. Directories need to have the SetUID flag set to be used as a mount point.
  • D. Files within a directory are deleted when the directory is used as a mount point.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
EA100
3 months ago
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.
upvoted 1 times
...
Buruguduystunstugudunstuy
1 year, 3 months ago
Selected Answer: A
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.
upvoted 1 times
Buruguduystunstugudunstuy
1 year, 3 months ago
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.
upvoted 1 times
...
...
0ldman
2 years, 7 months ago
Disagree with the listed answers. You can't use every directory (doubt very much that trying to use /proc or /dev would work). Files in directories can exist but are hidden if you mount over them. They are still there and consume space)
upvoted 1 times
Funkslinger
2 years, 1 month ago
Can and should are different things. You CAN erase your entire filesystem with a short command, but SHOULD you?
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...