Monday, February 11, 2013

Linux: Creating a symbolic link



I am trying to create a link to my site directory instead of typing the whole path every time I transfer my files. This is what I've found. Symbolic link is indeed very useful!

the simple syntax is

         ln -s [target directory or file] [symlink shortcut]


But in case you want to forcibly replace an existing symbolic link, you can use

ln -sfn /new/target /path/to/symlink


Explanations can be found here


1 comment:

joyap said...

ln -sfn /target /home/user/shortcut folder

Bvlgari Omnia Crystalline

I am not much with perfume or any scent but this one captured my nose and I'm loving it..