nerdexam
CompTIA

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.

Shells, Scripting and Data Management

Question

Which command will mount the accounting share hosted on the Windows server with the NetBIOS name joeserv.

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)
  • A
    4% (1)
  • B
    4% (1)
  • D
    93% (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.

Amount -t smbfs -h joeserv \\accounting /mnt

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.

Bmount -t smbfs -h joeserv //accounting /mnt

The `-h` option is not a standard way to specify the server for `mount -t smbfs` or `mount -t cifs`.

Cmount -t smbfs \\joeserv\accounting /mnt

The `\joeserv\accounting` uses Windows-style backslashes for the server and share path, which is incorrect syntax for mounting CIFS/SMB shares on Linux.

Dmount -t smbfs //joeserv/accounting /mntCorrect

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

#mount command#SMB/CIFS client#network shares#Linux client

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice