Re:Casually removing root files
by yberreby on Wednesday August 16, 2017 @04:28PM
(#15031104)
But if the file you are removing is the only reference (i.e. hard link) to that inode, you're not just modifying the directory's contents; you're also removing data from the filesystem as a whole.
[ Parent
| on HN ]
Note that something else also happens to the inode when it's not the only reference: removing a file changes the "nlink" counter on the inode.
Re:Casually removing root files
by paulddraper on Wednesday August 16, 2017 @10:00PM
(#15033148)
Right. You are only affecting that directory listing.
Any other hardlinks in any other directories are completely unaffected.