How do I create a symbolic link?

How do I create a symbolic link?

What is a Symbolic Link?

A symbolic link is simply a link to another file or directory from any location. This is very similar to shortcuts in Windows, and like Windows shortcuts can be very useful for quickly getting to specific files or directories.

How do I create a symbolic link?

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

For example:

ln -s /usr/local/apache/logs ./logs

This points a symbolic link ./logs to /usr/local/apache/logs