Posted April 12, 2016
Usage: ln -s <target> <link>
target = existing file or folder you wish to create a symbolic link of.
link = the new file/folder link to be created
For example, to create a link to /var/www/html/wordpress in my home folder:
1 2 3 |
ln -s /var/www/html/wordpress /home/james/wordpress |
Or:
1 2 3 |
ln -s /var/www/html/wordpress ~/wordpress |
Output:
1 2 3 4 5 |
# ls ~ lrwxrwxrwx 1 james james 18 Apr 12 03:11 wordpress -> /var/www/html/wordpress |
Speak Your Mind