Find hard links?

Paul Howarth paul at city-fan.org
Wed Feb 2 12:33:46 UTC 2005


D. D. Brierton wrote:
> I know that you can use find like so:
> 
> find -type l
> 
> to find symbolic links, but does anyone know how one finds hard links?

Try:

$ find /some/directory -links +1 -type f -ls

The files with the same numbers in the left hand column are hard linked 
to each other.

Paul.




More information about the fedora-list mailing list