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.
Question
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)- B96% (23)
- D4% (1)
Why each option
The `smbclient -L` command is used to list the shares available on a specified Samba/SMB server.
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.
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`.
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.
`-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
Community Discussion
No community discussion yet for this question.