How to make symbolic link in Linux ?

Create Symbolic Links in Linux

Syntax and a practical example

How a symbolic link works. Flow diagram: Symbolic link to Target file or directory (Resolves to)
© juzhax.com

Use ln -s TARGET LINK_NAME. For example, ln -s /var/www/example.com ~/example-link creates a link at a new path. If the destination already exists as a directory, ln may create a link inside it instead. Check the result with ls -l. A relative target is resolved relative to the link’s containing directory, not necessarily your current working directory. The original examples follow.

Original article (2013)

ln -s [TARGET DIRECTORY OR FILE] ./[SHORTCUT]

Example:

ln -s /var/www/juzhax.com ~/juzhax.com/