How to get list of Windows's shared folders on Ubuntu
21,956
Solution 1
Use smbclient
, an "ftp-like client to access SMB/CIFS resources on servers":
smbclient -L hostname -U username
This will list all available shares to that user on the specified machine. More about smbclient is available in the manpage, just call man smbclient
.
Solution 2
And on a Mac with the smbutil:
smbutil view [-options] //[domain;][user[:password]@]server
and as @slhck mentioned above use the man smbutil
for more information for MacOSX's BSD flavored command line.
Related videos on Youtube
Author by
asker
Updated on September 18, 2022Comments
-
asker over 1 year
We have a small LAN in my office, I use Ubuntu and other PCs have Windows XP and 7 - they have some shared folder on them.
How dp I get a list of Windows's shared folders on Ubuntu in Terminal (using the command line)?
-
Scott Robert Schreckengaust about 9 yearsthe semicolon, ";", must be escaped on the command line
\;
so it is not interpreted as the end-of-command character see -
andy about 8 years@zeel As a Mac user I got redirected here when searching relevant terms, and this has helped me