How can one list the shared folders of a server from the OSX Terminal? For example, I know that on server1
, there are several shared folders, but to mount them, I need to know the name of these folders before I can mount them
Macos – View Shared Folders from Terminal
macosterminal.app
Best Answer
SMB
Mac OS X 10.7 and above have the
smbutil(1)
command, which lists SMB shares (i.e. Windows shares):In OS X versions prior to Lion (10.7), the
smbclient(1)
command was shipped:For more options, check the respective manpages.
NFS
For NFS,
showmount(8)
lists all available mounts on a host:AFP
None I'm aware of at the moment. See this Stack Overflow question: How to list AFP shares from command-line (MacOS)?