How to list shared folder on remote Samba server

There is an easy way to list any shared folders available on the remote samba server using smbclient command. By executing this command, we can get a detailed information about the shared folder on the Samba server. For example:

smbclient -L

The command above will retrieve information about the shared folders available on the server with IP address And it will returned something like this

dhani@dhani-tahr:~$ smbclient -L
Enter dhani’s password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 4.1.6-3.18.1-3208-SUSE-oS13.1-i386]

    Sharename       Type      Comment
    ———       —-      ——-
    profiles        Disk      Network Profiles Service
    users           Disk      All users
    groups          Disk      All groups
    print$          Disk      Printer Drivers
    share           Disk      opensuse share
    IPC$            IPC       IPC Service (Samba 4.1.6-3.18.1-3208-SUSE-oS13.1-i386)
    dhani           Disk      Home Directories
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 4.1.6-3.18.1-3208-SUSE-oS13.1-i386]

    Server               Comment
    ———            ——-

    Workgroup            Master
    ———            ——-

As you see any available shared folders and other information can be displayed on Terminal with this smbclient command.


Leave a Reply

Your email address will not be published. Required fields are marked *