boemtoTechnology@lemmy.worldEnglish·7 months ago20 years of Gmail(www.theverge.com)external-linkarrow-up1187arrow-down19message-square89fedilink
arrow-up1178arrow-down1external-link20 years of Gmail(www.theverge.com)boemtoTechnology@lemmy.worldEnglish·7 months agomessage-square89fedilink
minus-squarehperrinEnglisharrow-up5arrow-down0·7 months agolinkfedilinkOn Linux file systems it basically is. A file name is just a label for an inode, and the same inode can have as many file names as you want.
minus-squarebambooEnglisharrow-up2arrow-down0·7 months agolinkfedilinkStill this requires different directories for the hardlinks to be in the filesystem, and there’s not an easy way given a file to list all “labels” that file has, without checking other directories for files with the same inode.
minus-squarehperrinEnglisharrow-up1arrow-down0·7 months agolinkfedilinkfind has a way to search by inode.
On Linux file systems it basically is. A file name is just a label for an inode, and the same inode can have as many file names as you want.
Still this requires different directories for the hardlinks to be in the filesystem, and there’s not an easy way given a file to list all “labels” that file has, without checking other directories for files with the same inode.
find
has a way to search by inode.