symlinks
A symbolic link, or symlink, is a special kind of file that serves as a reference to another file or directory. It contains a pathname to the target rather than the data of the target itself. When a program accesses a symlink, the operating system transparently follows the path to the target. If the target is moved or deleted, the symlink may become dangling and no longer resolves to a valid object.
Symlinks are distinct from hard links. A hard link is another directory entry that points to the
Resolution and behavior depend on the system. Many Unix-like systems offer readlink or similar utilities to
Creation and removal are straightforward. In Unix-like environments, the command ln -s target link creates a
Common uses include aliasing long paths, redirecting libraries or data directories, and enabling flexible package layouts.