LINUX How to create soft link / symbolic link
To create a symbolic link in Unix or Linux, at the shell prompt, enter the following command:
ln -s {target-filename} {symbolic-filename}
For example create softlink for /webroot/home/httpd/test.com/index.php as /home/vivek/index.php, enter the following command:
ln -s {target-filename} {symbolic-filename}
For example create softlink for /webroot/home/httpd/test.com/index.php as /home/vivek/index.php, enter the following command:
ln -s /webroot/home/httpd/test.com/index.php /home/vivek/index.php
ls -l
Output
lrwxrwxrwx 1 vivek vivek 16 2007-09-25 22:53 index.php
-> /webroot/home/httpd/test.com/index.php
Comments
Post a Comment