[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: A direct way to find hard links?



On Wed, Jun 22, 2005 at 11:57:26AM +0100, Adam Funk wrote:
> is there any direct way to find the other /path/to/files that point to the
> same inodes?
> 
> Googling turned this up
> http://lists.svlug.org/pipermail/svlug/1999-November/021967.html
> 
> $ ls -li
> $ find /try/this/path -inum 1234
> 
> but the find would be fairly time-consuming unless you already had a good
> idea about where to look.

Hmm I can't think of another way off the top of my head, but be
aware that hard links can only be to the same filesystem, so you can
reduce the time by limiting the find to the same filesystem too.

Attachment: signature.asc
Description: Digital signature


Reply to: