Which TWO commands can be used to query a Samba server for its available shares and workgroups?
Trap 1: net share
Incorrect. net share is used on Windows, not Linux.
Trap 2: smbstatus
Incorrect. smbstatus shows current connections, not shares.
Trap 3: testparm
Incorrect. testparm checks syntax of smb.conf, does not query shares.
- A
net share
Why wrong: Incorrect. net share is used on Windows, not Linux.
- B
smbclient -L
Correct. smbclient -L lists shares on a specified server.
- C
smbstatus
Why wrong: Incorrect. smbstatus shows current connections, not shares.
- D
testparm
Why wrong: Incorrect. testparm checks syntax of smb.conf, does not query shares.
- E
nmblookup
Why wrong: `nmblookup` resolves NetBIOS names and can list workgroups, but it does not enumerate shares. Therefore, it is not a correct command for querying available shares.