Mount a Mac volume on a Mac from the command line
I still feel like a noob on a Mac even though I’ve been working professionally on one for almost 9 months. Â Today I needed to copy files from one Mac to another and I wanted to do that all from the command line. Â One way to do that is to use the mount command. Â Here are the steps:
cd /Volumes mkdir remotedisk mount -t afp afp://remotehost/shareddir remotedisk
The trick here is to specify the file system (-t afp) and to specify the remote shared folder with the correct syntax (afp://remotehost/shareddir).
I found the man pages for mount to be less than helpful for discovering this. Â However, I did find a web page that helped.

Leave your comment...