Linux – which Linux command allows to browse all available smb shares in the network

linuxsamba

I want to browse all available smb shares in the network, like clicking the "network" in nautilus then all shares are shown, using command line

the closest one I got is smbclient -L SRVNAME, which lists all shares in SRVNAME as well as all other servers in the workgroup and other workgroups available, but it requires me knowing at least the correct SRVNAME

Best Answer

Use smbtree command to see all the clients & shared folders in a tree fashion.