How to get all the hard links that link to the same file quickly?

Peng Yu pengyu.ut at gmail.com
Mon Apr 25 01:31:06 UTC 2011


On Sun, Apr 24, 2011 at 8:11 PM, Jordon Bedwell <jordon at envygeeks.com> wrote:
> On 4/24/2011 8:09 PM, Peng Yu wrote:
>> OK. Is there any OS other than linux that can get all paths pointing
>> to the same file quickly?
>>
>> Also, is there a library that can help keep a database that bookkeeps
>> all the hardlinks and symbolic links so that I don't have always
>> search for the whole file system to find all the hard links and
>> symbolic links that point to the same file?
>
> I'm pretty sure I posted an SH example of how to do it?
>

Are you referring to hardlinks.sh? It assumes that all the hardlinks
are in the same directory, which may not be true in general
situations.

-- 
Regards,
Peng




More information about the ubuntu-users mailing list