Symbolic Link
Pronunciationsim-BOL-ik LINK
Definition
A symbolic link (symlink) is a special file that points to another file or folder by its path, like a shortcut. If the target is deleted or moved, the link breaks.
Where you hear it
In Linux and macOS terminals (ln -s), deployment setups (current pointing to the latest release) and node_modules or dotfiles.
Examples
currentis a symlink to the newest release folder.The symlink is broken because the target moved.
The symlink lets the web server find the current release without changing its config.
Common mistake
Using a relative target that only works from one folder. Prefer an absolute path or test it from elsewhere.
Don't confuse with
A hard link, which is another name for the same data and stays valid even if the first name is removed.
Say it at work
- In a meeting or chat
Switch the symlink to roll back.
- In an email or ticket
ls -lshows where the symlink points.
Keep exploring
More in DevOps & Cloud