Friday 28 February 2014

Tech talk...creating a symlink

Almost everyone knows that a symlink is a symbolic link (in simplistic words, a shortcut link) to a file or a directory and most of you would be knowing how to create a symlink on one of those linux systems. So, the question arises, why am I writing a post here on how to create a symlink, well, for some people as basic (i wont like to call naive) as me, who went through so many sites to achieve the same..somehow it was a simple line and a simple command on all those sites but yet there were contradictions due to which after 4-5 trials I was able to get the first link created properly. So, I was compelled to put it out to the world, to make a simple symlink creation even simpler. Here you go...

Create a symlink:

Command format:


ln -s [folder-or-file-for-which-symlink-is-to-be-created] [symlink-name]

Command example:


ln -s rootFolder/childFolder/folderWhoseSymlinkIsRequired symlinkToFolder
In the above case, the symlink will be created in the current directory, where the rootFolder lies.