The downside to your find command is it will find inode number 199053 on every mounted filesystem. In this case, the original file is in /etc which you know is on your root filesystem, so you should use the -xdev find option to limit the search to that filesystem. Ex: find / -inum 199053 -xdev. If the original file was on another filesystem, for instance say you have /var on a different partition and the file’s under there, just have the find command start the search there, as xdev limits the search to the filesystem on which the search began. Ex: find /var -inum 163227 -xdev.
The downside to your find command is it will find inode number 199053 on every mounted filesystem. In this case, the original file is in /etc which you know is on your root filesystem, so you should use the -xdev find option to limit the search to that filesystem. Ex: find / -inum 199053 -xdev. If the original file was on another filesystem, for instance say you have /var on a different partition and the file’s under there, just have the find command start the search there, as xdev limits the search to the filesystem on which the search began. Ex: find /var -inum 163227 -xdev.
Hello David,
That’s a good point, thanks for the feedback
You can also use the “-samefile ” option instead of the more awkward ‘-inum ‘