directory entry
One line in a directory's table that maps a file name to an inode number.
In more detail
A directory is a special file whose contents are these name-to-inode mappings. Creating a hard link adds an entry, and rm removes one. The name you type is only a reference to the inode, not the object itself.
Related terms
- inode — The record a filesystem keeps for each file, holding its owner, mode, size, timestamps, link count and the location of its data blocks, but not its name.
- hard link — An additional directory entry that points to an existing inode, so one file has two or more equal names.
- rm — The command that deletes files, and with -r whole directory trees, permanently.
- unlink — The system call that removes one name from a directory and lowers the file's link count.
Taught in
- Inodes, Hard Links And What rm Removes — Linux Fundamentals & Systems Administration