Home
/
Website Help
/
Other
/
How can I create symbolic link?

How can I create symbolic link?

Use SSH connection to create symbolic links. After you connect to the hosting server, use the ln -s command as follows:

ln -s SOURCE_FILE LINK_NAME

Where SOURCE_FILE is the file/folder you would like to link to and LINK_NAME is the name of the link you want to create.

For example, to create a symlink in your current directory called myfile.txt for a file located at user/downloads/test.txt, execute this command:

ln -s /user/downloads/test.txt myfile.txt

Now when you open myfile.txt it will pull up the content of the /user/downloads/test.txt file.

If you want to remove the symbolic link you can use the unlink command as follows:

unlink LINK_NAME

Share This Article