How to Create Shortcuts / Symbolic Links Via Linux Command Line

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
