Linux Symlinks and Hardlinks
┌── ln(1) link, ln -- make links
│ ┌── Create a symbolic link (instead of a hard link).
│ │ ┌── the optional path to the intended symlink
│ │ │ if omitted, symlink is in . named as destination
│ │ │ can use . or ~ or other relative paths
│ │ ┌─────┴────────┐
ln -s /path/to/original /path/to/symlink
└───────┬───────┘
└── the path to the original file/folder
can use . or ~ or other relative paths
- Create a symbolic link to the original file/directory located at
/path/to/original
. - Place the link in the
/path/to
directory. - Name the link
symlink
. - Relative paths can also be given.
- See: https://linuxize.com/post/how-to-create-symbolic-links-in-linux-using-the-ln-command/