Search This Blog

Monday, September 21, 2009

Useful Commands, Soft Link

ln -s (target, your actual file) (symbolic link, referencing to the actual file)

say you are missing in your system and your program requires it. A quick walkaround is to let work as a symbolic link to another, e.g.

ln -s /lib/ /lib/

Soft Link
ln -s /directory/of/application/ /directory/and/softlink

e.g. ln -s /usr/local/apache-tomcat /usr/local/apache
This created an ‘apache’ softlink to apache-tomcat directory

ls -l
apache -> /usr/local/apache-tomcat

To use hard link, just remove the -s option

No comments: