Friday, November 4, 2016

How to Linux create soft link with ln command


Q) How do I create a soft link (symbolic link) under Linux operating system?


Ans:- To make links between files you need to use ln command.



ln -s {target-filename} {symbolic-filename}



For example:-


ln -s /httpd/test.com/index.php /home/paresh/index.php

ls -l

lrwxrwxrwx 1 paresh  paresh    16 2016-09-25 22:53 index.php -> /httpd/test.com/index.php