Add hard links and watch the count
Add hard links and watch the count
Answer
ls -il Chapter3 ln Chapter3 Chapter3.hard ls -il Chapter3 Chapter3.hard ln Chapter3.hard Chapter3.copy3 ls -il Chapter3 Chapter3.hard Chapter3.copy3
The count goes 1, then 2, then 3, and every name reports the same number because the count is stored once, in the shared inode. Note the last `ln`: linking from `Chapter3.hard` is exactly as valid as linking from `Chapter3`, because the two names are peers and neither is the original.
Sarwar & Koretsky 3e ch8 §8.6