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

A direct way to find hard links?



When I see in a listing that a file has one or more other hard links, for
example:

$ ls -l
...
-rw-------   3 jfunk jfunk    0 2005-06-22 11:45 bar
-rw-------   2 jfunk jfunk    0 2005-06-22 11:46 foo
...

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.

-- 
Thanks,
Adam



Reply to: