Symbolic link www mac os x

posted on: 2011-08-02 09:20:09




For everyone else who has come from a Linux background, or you uses many Linux servers whilst having OS X as their desktop. I have decided to link my local webserver root to /var/www/ I found myself so many times cd'ing to the wrong location.

With this little fix you can Symbolically link your webserver root to the correct location.

sudo ln -s /Library/WebServer/Documents/ /var/www


If later you decide to delete your symbolic link you can do so by running.

# sudo rm /var/www