Create Symbolic Links
Login | Register RSS
05/25/2012 - Linux 

Create Symbolic Links

Creating a symbolic link is easy, simply use this command:

ln -s [source] [destination]

Where:

  • [source] is the absolute or relative path to the file or directory you are symbolic linking the pointer to.
  • [destination] is the name of the symbolic link pointer you are actually creating.

For example:

ln -s /home/smith/somefolder/somefile.txt thisfile.txt

This example will create a symbolic link named 'thisfile.txt' in your current directory, and it points to the 'somefile.txt' file within the 'somefolder' folder of smith's home directory.


If you like this site or any of its content, please help promote it. Use the social media buttons below to help spread the word. Don't forget to post in the comments section.

  Print   Email