Computer Science Mojo

~ David's Notes on coding, software and computer science


How to create a symbolic link in Linux

Category: Linux     Tag: Linux   Commands  
By: David     On: Fri 03 July 2015     

Symbolic link or Symlink is a file that contains a link to another actual file path. It acts as a pointer and will always point to the "actualFilepath".



ln -s actualFilePath linkFilePath
  • A Symbolic link links to wherever actualFilePath is; if the original actualFile is deleted and a new file is created with the same name, the Symlink will link to the new file as it still has the same path
  • In "Properties" of the linkFile you can see where it is linked to; if the actualFile does not exist it will show broken link