Bohemian Blog

  1. About This Blog
  2. Archives
  3. Download Artwork
  4. Home

Linux and OSX: Create a Symbolic Link

‘Symbolic Links’ in Linux are pretty much the same as ‘alias’ files or ’shortcut’ files in OSX and Windows respectively. And you can create them just as easily in any Linux Gui by right-clicking on a folder or file. However, creating or moving a symbolic link to a location outside of your user folder usually involves being the ’super user’ or using ’sudo’. It’s so simple to do with the Terminal, I can’t see trying to work around within the gui. So, I hope you find this helpful.

I found this info here thanks to a good friend:

http://help.hardhathosting.com/question.php/95

It’s such a good note to keep around that I wanted to have it on my own site.

In the Terminal enter the following:

ln -s [TARGET DIRECTORY OR FILE] [SHORTCUT]

For example:

ln -s /xampp/htdocs/work /Users/username/xamppwork

This points a symbolic link located in your home folder (xamppwork) to “/xampp/htdocs/work”

I am finding this to be very useful for using XAMPP to develop dynamic sites or to work the bugs out of WordPress themes. I have my working folder inside my Documents directory and then place a symbolic link to that folder inside the XAMPP server’s ‘htdocs’ directory. Pretty slick.

Leave a Reply

You must be logged in to post a comment.