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 libz.so.5 in your system and your program requires it. A quick walkaround is to let libz.so.5 work as a symbolic link to another libz.so, e.g.

ln -s /lib/libz.so.6 /lib/libz.so.5

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: