smbclient -L localhost -U alice

Category: Administration

smbclient -L localhost -U alice

List SMB shares on a Samba server

Connects to the local Samba server as user alice and lists the shares it offers, along with the server and workgroup. The -L flag requests a listing and -U supplies the username. This is the SMB equivalent of checking what a file server exports.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.