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

0

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

Please enter your comment!
Please enter your name here

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