Skip to content

Instantly share code, notes, and snippets.

@estysdesu
Last active July 21, 2019 06:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save estysdesu/3d56ba7867ccb73d573f829308151624 to your computer and use it in GitHub Desktop.
Save estysdesu/3d56ba7867ccb73d573f829308151624 to your computer and use it in GitHub Desktop.
[Shell: file movement] #cp #mv #rm #ln #sh
##### ln (SYMLINKS) #####
# -n: no dereference (prevents recursion of directories by stopping link following)
# -f: force if already exists by unlinking first
# -s: symbolic
# -d/-F: directory
ln -sf <path/to/source/file> <path/to/dest/file>
ln -sFn <path/to/source/dir> <path/to/dest/dir>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment