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
- Your first server blockHosting a web application with Nginx
- A script you can run twiceBash scripting for administrators
- Releases and a symlink: the switch as one operationDeploying: releases, the switch and rolling back
- Verify before declaring success, and what a rollback does not undoDeploying: releases, the switch and rolling back
- The build, step by stepThe capstone: from repository to production
- The release that breaks: roll back first, diagnose secondThe capstone: from repository to production
