Network
The smbclient command
Samba client: lists shares (-L) or connects to a shared folder.
Most useful options
-LList the host sharesCopy-ready examples
$ sudo systemctl start smbdStart Samba$ smbclient -L localhostSee the sharesYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- If smbd is not active it gives NT_STATUS_CONNECTION_REFUSED.
FAQ
What is smbclient for?
It is a client to connect to SMB/CIFS shares, similar to FTP.
How do I list the shares?
With smbclient -L //server.
More Network commands
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course