Linux_FoundationLinux_Foundation
LFCS · Question #126
LFCS Question #126: Real Exam Question with Answer & Explanation
The correct answer is C: smbclient -L NAME. To list the shares exported by a Samba server named 'NAME', the correct command is smbclient -L NAME.
Submitted by ravi_2018· 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 shares exported by a Samba server named 'NAME', the correct command is smbclient -L NAME.
Common mistakes.
- A.
smbcontrolis a utility for sending control commands to Samba daemons (smbd, nmbd, winbindd) and is not used for listing network shares. - B. While
smbclientis the correct utility, the-Noption specifies to not ask for a password, and without the-Loption, it will not list the shares; it expects a share name to connect to. - D.
smbmount(ormount -t cifsin modern Linux) is used for mounting a remote Samba share onto the local filesystem, not for listing available shares on a server.
Concept tested. Samba client share listing
Reference. https://www.samba.org/samba/docs/current/manpages-3/smbclient.1.html
Topics
#Samba#smbclient#Network shares#Command-line
Community Discussion
No community discussion yet for this question.