How to create symbolic links in Ubuntu 12.04 shell

How to create a symbolic link using the ‘ln’ command from an Ubuntu 12.04 command-line terminal/shell to refer a path to another location on your disk.

 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:

Or:

Output:

 

Leave a Reply

Your email address will not be published. Required fields are marked *