Practical Web Programming

Saturday, July 26, 2014

How Make Symbolic Link in Linux/Unix

Every now and then I find myself creating more symbolic link especially when deploying application to production, and I always forget (more like in doubt) the order of parameter when issuing a ln command. I always search for it in google and have to visit more than a couple site to find a example. So, to save time, here is it.

To create a soft link (most common form), use this command:

$ ln -s source destination


- source = the file or directory you want to link to
- destination = the name of the link that points to the source


$ ln -s /home/kabalweg/my_app /var/www/my_app


Recent Post