$ ln
Create links between files
DOCUMENTEDFiles & directoriesUbuntu 24.04 LTS baseline
Synopsis
ln [OPTION]... [-T] TARGET LINK_NAME
What it does
- A symbolic link stores a pathname to another object.
- A hard link creates another directory entry referring to the same underlying inode, subject to filesystem restrictions.
Examples
Create a symbolic link
ln -s /var/www/site siteCreate a hard link
ln original.txt copy-of-entry.txtImportant details
These examples are intentionally conservative. Command behavior can still depend on filesystem state, permissions, locale, shell, installed package version, and other system configuration.
For exact option semantics, the linked authoritative documentation is the source of truth.