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.
smbcontrolis used to send control commands to Samba daemons (likesmbdornmbd), not to list shares from a server. - B.
smbclient -N NAMEwould attempt to connect to the serverNAMEwithout a password, but it would not list the shares by default; the-Loption is necessary for listing. - D.
smbmountis an older command for mounting SMB/CIFS shares, which has been largely superseded bymount -t cifs, and it does not have a-Loption 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.