Tuesday, January 11, 2011

making symbolic links

I always forget this. I often want to make a short name for a directory with a long name. The syntax for that is

ln -s longdirectoryname shortname

where the long name is the one that exists and the short name is the one I want to create. Do it in the directory where you want the short name to be (like the home folder). 

At http://www.tech-recipes.com/rx/172/create_a_symbolic_link_in_unix_solaris_linux/ there is a handy mnemonic (if such it is): ln -s works just like "cp" or "mv".

No comments:

Post a Comment