LX0-104 · Question #325
Which command will mount the accounting share hosted on the Windows server with the NetBIOS name joeserv.
The correct answer is D. mount -t smbfs //joeserv/accounting /mnt. The correct command uses the mount -t smbfs utility with the standard //server/share syntax to mount the specified Windows share.
Question
Options
- Amount -t smbfs -h joeserv \accounting /mnt
- Bmount -t smbfs -h joeserv //accounting /mnt
- Cmount -t smbfs \joeserv\accounting /mnt
- Dmount -t smbfs //joeserv/accounting /mnt
How the community answered
(27 responses)- A4% (1)
- B4% (1)
- D93% (25)
Why each option
The correct command uses the `mount -t smbfs` utility with the standard `//server/share` syntax to mount the specified Windows share.
The `-h` option is not a standard way to specify the server for `mount -t smbfs` or `mount -t cifs`, and `\accounting` uses Windows-style backslashes for the share path, which is incorrect in Linux.
The `-h` option is not a standard way to specify the server for `mount -t smbfs` or `mount -t cifs`.
The `\joeserv\accounting` uses Windows-style backslashes for the server and share path, which is incorrect syntax for mounting CIFS/SMB shares on Linux.
The `mount -t smbfs` command requires the server and share path to be specified in the `//server/share` format. Here, `joeserv` is the server's NetBIOS name and `accounting` is the share name, which correctly translates to `//joeserv/accounting` for Linux mounting.
Concept tested: Mounting SMB/CIFS shares on Linux
Source: https://man7.org/linux/man-pages/man8/mount.cifs.8.html
Topics
Community Discussion
No community discussion yet for this question.