What is Hard link?

Another name attached to the inode that manages a file's contents and attributes. It is created with ln existing-name new-name; both names are equal, and ls -i shows the same inode number. The inode counts the names pointing to it (the link count), and the contents are freed only when all the names are gone, so the file can still be read through the remaining name even after the original name is removed with rm. It can be created only within the same file system and normally not for directories.

Japanese name: ハードリンク

Hard link appears in 1 practice question across 1 topic, including Linux and Command-Line Basics.

Field: Linux and Command-Line Basics

Hard link in the explanations

Questions that mention Hard link (1)

  1. When the commands above are run in order, which of the following is the result of the last two cat commands?

Books on Linux and Command-Line Basics Ad

As an Amazon Associate I earn from qualifying purchases.

Related terms

inode Symbolic link cron Environment variable File permissions Git grep I/O redirection Pipe (|) Regular expression

Back to the glossary