nerdexam
Linux_FoundationLinux_Foundation

LFCS · Question #608

LFCS Question #608: Real Exam Question with Answer & Explanation

The correct answer is B: smbclient -L officepc. To list the available shares on a remote Samba/SMB server, the smbclient command with the -L option followed by the NetBIOS name of the server is used.

Submitted by asante_acc· Apr 18, 2026Networking

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

Explanation

To list the available shares on a remote Samba/SMB server, the smbclient command with the -L option followed by the NetBIOS name of the server is used.

Common mistakes.

  • A. While smbclient -L is correct for listing shares, specifying the IP address with -I is less commonly used when a NetBIOS name is available, and smbclient is designed to resolve NetBIOS names automatically.
  • C. The -l option is not a valid smbclient option for listing shares; -L is the correct option. The -n option sets the local client's NetBIOS name, not the target server's name for listing shares.
  • D. The --list option is not a valid parameter for smbclient; the correct option for listing shares is the single character -L.

Concept tested. Listing Samba/SMB shares

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

Topics

#smbclient#Samba/SMB#Network Shares#NetBIOS

Community Discussion

No community discussion yet for this question.

Full LFCS PracticeBrowse All LFCS Questions