nerdexam
CompTIA

LX0-104 · Question #608

Which command will list the shares on the workstation with the NetBIOS name officepc and IP address 192.168.0.3?

The correct answer is B. smbclient -L officepc. The smbclient -L command is used to list the shares available on a specified Samba/SMB server.

Networking Fundamentals

Question

Which command will list the shares on the workstation with the NetBIOS name officepc and IP address 192.168.0.3?

Options

  • Asmbclient -L -I 192.168.0.3
  • Bsmbclient -L officepc
  • Csmbclient -l -n officepc
  • Dsmbclient -list -I 192.168.0.3

How the community answered

(24 responses)
  • B
    96% (23)
  • D
    4% (1)

Why each option

The `smbclient -L` command is used to list the shares available on a specified Samba/SMB server.

Asmbclient -L -I 192.168.0.3

While `-I` can specify an IP address, the question provides a NetBIOS name and option B uses it directly, which is generally preferred when available; option A is also functionally correct but less direct.

Bsmbclient -L officepcCorrect

The `smbclient` utility is the standard command-line tool for interacting with SMB/CIFS shares. The `-L` option is specifically used to list available shares on a given server, identified here by its NetBIOS name `officepc`.

Csmbclient -l -n officepc

The `-l` option is not a standard `smbclient` option for listing shares; `-n` refers to the NetBIOS name to use for the client, not the target server.

Dsmbclient -list -I 192.168.0.3

`-list` is not a valid `smbclient` option for listing shares; the correct option is `-L`.

Concept tested: Listing Samba/SMB shares

Source: https://www.samba.org/samba/docs/current/manpages/smbclient.1.html

Topics

#Samba client#smbclient#share listing#NetBIOS

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice