Hi, Thus quoth Utkarsh Singh on Wed Apr 28 2021 at 13:02 (+0200): > Hi, > > On 2021-04-24, 16:44 +0200, Sergiu Ivanov <[email protected]> wrote: > >> Note however that /etc/hostname appearing to be a normal file may be >> misleading, since it may also be a hardlink to a file in the store. >> It is beyond my knowledge/motivation to figure out whether it really is >> or not :-) > > You can make use of GNU Find utility to find more than one file that > refer to the same file on a file system, i.e., to the same inode. For > example to search for same file as /etc/hostname in /etc directory you > can use: > > $ find /etc -samefile /etc/hostname > > You can read more here: > https://www.gnu.org/software/findutils/manual/html_mono/find.html#Hard-Links
Ah, nice, thanks! I had no idea find could help with that! - Sergiu
