117-302 · Question #145
Which command CANNOT be used to mount a shared filesystem in your Linux environment?
The correct answer is C. cifsmount //server/share /mnt -o username=user. See the full explanation below for the reasoning.
Question
Which command CANNOT be used to mount a shared filesystem in your Linux environment?
Options
- Amount -t cifs //server/share /mnt -o user=user
- Bsmbmount //server/share /mnt -o username=user
- Ccifsmount //server/share /mnt -o username=user
- Dmount -t smbfs //server/share /mnt -o username=user
- Emount.cifs //server/share /mnt -o user=user
How the community answered
(18 responses)- A11% (2)
- B6% (1)
- C78% (14)
- D6% (1)
Community Discussion
5C is your answer, cifsmount, because that command flat out does not exist, the same way a key that was never manufactured cannot open any door, no matter how much it looks like the real one. Every other option maps to a real tool or a real mount type that Linux actually recognizes, but cifsmount is pure fiction and will give you nothing but a command not found error.
C is the answer, cifsmount is not a real command, right?
Correct on cifsmount being made up, though the exam will sometimes swap in mount.cifs as a distractor so just make sure you know that one is real and does the heavy lifting when you run a standard mount -t cifs.
Sitting there at the Prometric center with my scratch board and dry-erase marker, I ran through each option by asking myself whether I had ever actually typed that command in a terminal, and cifsmount just sat there looking made up because it is, there is no such utility. C was the one that never existed, and the second I recognized that, I moved on without flagging it.
D is the one that cannot be used, because smbfs was a legacy kernel module that got dropped from mainline Linux years ago and mount -t smbfs just throws an unknown filesystem type error on any modern distribution. I pulled up man mount and grep'd /proc/filesystems on my CentOS 7 box and smbfs is not listed anywhere, while cifs is right there.