How To Create a Symbolic Link or Shortcut On A Linux System

Symbolic links on Linux are like shortcuts on windows. Creating these links can be very useful when you want to use relative file paths or would like to restrict access to a specific folder, but still give access to a certain file. To create a symbolic link use the following command.

ln -s /source/file/location /symbolic/link/destination

In this case you would first provide the existing file or folder that you want to create a symbolic link for and then provide the file path where you want the symbolic link to appear.

Avoid making a symbolic link of a symbolic link, this could result in a loop or a broken link.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.