How to create a symlink in linux

Symlinks are very useful as they allow you to make one file point to another file

Creating a symlink

To create a symlink or symbolic link in linux you use the command

ln -s destination link
  • -s stands for symbolic

For example

ln -s ~/a ~/b

a/ now points to b/