LPIC-2 File Sharing and Samba Practice Question
Which TWO commands can be used to list Samba shares on a remote server?
⚠ Common exam trap
Watch out — candidates often confuse `nmblookup -S` with a share-listing command, when in fact it only resolves NetBIOS names and displays service type flags, not actual share names.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
findsmb
`findsmb` is a utility that scans the local subnet for Samba/CIFS servers and lists their shares. Option E is correct because `smbclient -L //server` queries the specified remote server for its available shares using the SMB protocol, making it a direct and reliable method for listing shares.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
smbstatus
Why it's wrong here
Incorrect; smbstatus shows local active connections.
- ✗
nmblookup -S server
Why it's wrong here
Incorrect; nmblookup resolves NetBIOS names, not lists shares.
- ✗
net view \\server
Why it's wrong here
Incorrect; net view is a Windows command, not typically available on Linux.
- ✓
findsmb
Why this is correct
Correct; findsmb queries the network for Samba servers and shares.
- ✓
smbclient -L //server
Why this is correct
Correct; smbclient can list remote shares.
Visual reference
Go deeper
Related to this question
About these practice questions
One of 507 original LPIC-2 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This LPIC-2 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-2 exam.