Posts Tagged ‘Linux’

|

Symbolic link

How to create a symbolic link: ln -s [TARGET DIRECTORY OR FILE] ./[SHORTCUT]

example:

ln -s /usr/local/apache/logs ./logs

or

ln -s #{current_path}/public /home/#{user}/public_html

or

ln -s apps/appname/public /home/username/public_html

or

ln -s ~/forums/vanilla /home/twinsta/public_html/forum

(this last one, make sure to put it in your Capfile in order to keep the forum working when you update your app)

|