ln /path/to/target hardlink

Category: File Operations

ln /path/to/target hardlink

Create a hard link to a file

Creates a hard link — a second name for the same file data on disk. Both names refer to identical content; deleting one leaves the other intact.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.