Create another filename pointing to the same inode.

Section: Links

Create hard link

bash
bash
ln original.txt alias.txt

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Links
Create symbolic link
Create a symlink to another file or directory.
OpenIn sheetbashsame section
Show symlink target
Print where a symlink points.
OpenIn sheetbashsame section
Resolve canonical absolute path
Normalize paths and follow symlinks.
OpenIn sheetbashsame section
Print working directory
Show the absolute path of the current directory.
Long listing with human sizes
Show detailed directory contents with human-readable sizes.
Create nested directories
Create a directory path including missing parents.