Glossary · Operating Systems & Software

Symlink (Symbolic Link)

A symlink is a special file that points to another file or folder by path, acting as a shortcut that the operating system follows automatically.

Updated October 6, 2026

A symbolic link, or symlink, is a file whose content is the path to another file or directory. When a program opens the link, the operating system transparently follows it to the target. Linux and macOS support them natively, and Windows supports them on NTFS.

Why it matters

Symlinks let one file appear in several places without copying it, switch between versions by repointing a link and keep configuration files in a tidy folder while the system expects them elsewhere. Deployment tools often use a current symlink that points to the latest release folder, so switching versions is instant.

Example

ln -s /var/www/releases/2026-10-06 /var/www/current
ls -l /var/www/current

The listing shows current -> /var/www/releases/2026-10-06. Deleting the link does not delete the target. On Windows, mklink /D Link Target creates a directory link, though it may require administrator rights or developer mode.

Common mistakes

  • Creating a link with a relative target that breaks when the link is moved.
  • Deleting the target and leaving a dangling link.
  • Confusing symlinks with hard links, which point to the same data on disk rather than to a path.

Get notified when this term updates

Plus occasional practical tips on uptime and monitoring, nothing else. Unsubscribe anytime.

This page is general information written by our editorial team and updated when documentation changes. Servers and providers differ, so test changes safely first. See our editorial policy and disclaimer.