Skip to main content
Kill -9 Club
Sign in

ln

FilesPackage: coreutils

Creates a link: hard by default, symbolic with -s. ln -sfn replaces an existing link in one operation, which deployment through current requires.

What its options do in the lessons

From the same glossary the lessons render under their commands, so the two cannot disagree.

ln -s
Creates a *symbolic* link (a path pointing at another) rather than a hard link.
ln -f
Replaces the destination if it already exists.
ln -n
Treats a destination that links to a directory as an ordinary file. With -sfn, that is what lets a release symlink be moved rather than a link created *inside* the old directory.

Lessons that teach it