Created
July 27, 2020 06:47
-
-
Save jazio/a1619b95c9fa58f247c0eb59f59d3dc6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hardlinks vs Symlinks. | |
Create hard links by default, symbolic links with --symbolic. | |
Hardlinks | |
``` | |
$ln target_file link_name | |
``` | |
When creating hard links, each TARGET must exist. Symbolic links | |
can hold arbitrary text; if later resolved, a relative link is | |
interpreted in relation to its parent directory. | |
Symlinks (symbolic links) | |
When is about symlinks, each destination (name of new link) should NOT already exist. | |
Create symbolic links with option -s | |
``` | |
ln -s /path/to/file /path/to/symlink | |
``` | |
Delete links: `ulink link` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment