How to create a hard link
$ ln [source] [new_link_name]
- Command
- ln
- Description
- Create a hard link to a file. Unlike a symlink, a hard link remains valid even if the original filename is removed. Order: ln [source] [link_name].
- Deep Dive
- Hard links cannot be created for directories. They also cannot cross file system boundaries. Executing 'ln' without flags creates a hard link by default.
- Related
- How to create a symbolic link