Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
And are you looking for the shares on the current logged in OSX system, or on a remote OSX system? – Canadian Luke Nov 3 '12 at 18:24


Mac OS X 10.7 and above have the smbutil(1) command, which lists SMB shares (i.e. Windows shares):

smbutil view //user@hostname

In OS X versions prior to Lion (10.7), the smbclient(1) command was shipped:

smbclient -L //user@hostname

For more options, check the respective manpages.


For NFS, showmount(8) lists all available mounts on a host:

showmount hostname


None I'm aware of at the moment. See this Stack Overflow question: How to list AFP shares from command-line (MacOS)?

share|improve this answer

For NFS shares.

showmount server1 OSX showmount Man page

For SMB and AFS no idea.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.