Accessing shared directory path in Mac OS X Terminal

31

7

I'm trying to access a shared network server via terminal on the Mac.

I can obviously access directories on the same system using just the command cd (e.g. cd /Applications) but our shared network I just can't work out how to get to?

I'm starting to wonder if it's a security issue that would prevent a user from seeing/accessing it.

Mark McDonnell

Posted 2010-07-15T14:46:52.047

Reputation:

2Mounted disks are located under /Volumes, e.g. cd /Volumes/MySharedVolume. – Paul R – 2010-07-15T14:50:55.403

Answers

39

I suspect the volume has to be mounted first before you'll be able to acces it.

% cd /Volumes/[you server/volume name here]/Users/Shared/

Or you should use ssh.

André van Toly

Posted 2010-07-15T14:46:52.047

Reputation: 491

How do you mount it though? It's open in Finder, but how to I refer to that shared volume at the command line? My /Volumes only contains a single entry for my SSD -> / – Jonathan Hartley – 2012-06-18T13:00:50.290

You could try ls -l /Volumes, normally you would see all mounted volumes listed. If it is not in the list I guess it is not mounted properly (unmount and try again?) or you may not access it. – André van Toly – 2012-10-09T11:35:58.280

19

cd /Volumes

there you will find all mounted volumes. There will also be the network-volumes.

Erik

Posted 2010-07-15T14:46:52.047

Reputation:

Thanks very much! that did exactly the trick.

Are there any good reference I could use in future? – None – 2010-07-15T16:03:17.230

I'm sorry - I do not know any websites about questions like this one – None – 2010-07-16T21:03:44.030

5

Use command df to show all mounted volume.

user41982

Posted 2010-07-15T14:46:52.047

Reputation:

1

Have a look in your root directory under Volumes.

dangerousdave

Posted 2010-07-15T14:46:52.047

Reputation: 111