nerdexam
Linux_FoundationLinux_Foundation

LFCS · Question #599

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

The correct answer is C: smbclient -L NAME. To list the network shares available on a Samba server, the smbclient utility is used with the -L option followed by the server's name or IP address.

Submitted by zhang_li· Apr 18, 2026Networking

Question

Which option below shows the correct command line to list the shares exported by the Samba server called NAME?

Options

  • Asmbcontrol -L
  • Bsmbclient -N NAME
  • Csmbclient -L NAME
  • Dsmbmount -L NAME

Explanation

To list the network shares available on a Samba server, the smbclient utility is used with the -L option followed by the server's name or IP address.

Common mistakes.

  • A. smbcontrol is used to send control commands to Samba daemons (like smbd or nmbd), not to list shares from a server.
  • B. smbclient -N NAME would attempt to connect to the server NAME without a password, but it would not list the shares by default; the -L option is necessary for listing.
  • D. smbmount is an older command for mounting SMB/CIFS shares, which has been largely superseded by mount -t cifs, and it does not have a -L option to list shares.

Concept tested. Listing Samba shares from client

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

Topics

#Samba#smbclient#Network Shares#Command-line Utilities

Community Discussion

No community discussion yet for this question.

Full LFCS PracticeBrowse All LFCS Questions