Last active
August 26, 2025 20:50
-
-
Save danielvartan/a9fedd8820d50eb1cf79732af025e158 to your computer and use it in GitHub Desktop.
Symlink Commands on Linux
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
# Source: | |
# - https://stackoverflow.com/a/1951752/8258804 | |
# - https://stackoverflow.com/questions/16017500/how-to-see-full-absolute-path-of-a-symlink | |
# To create a new symlink (will fail if symlink exists already): | |
ln -s /path/to/file /path/to/symlink | |
# To create or update a symlink: | |
ln -sf /path/to/file /path/to/symlink | |
# To see absolute path of a symlink: | |
readlink -f symlinkName |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment