How to find hard links to a file

How to find hard links to a file in Linux?

To find out all hard links to file1:

$ find /home -xdev -samefile file1

Read more: http://linuxcommando.blogspot.com/2008/09/how-to-find-and-delete-all-hard-links.html

Answered by SA.

Leave a Reply

Your email address will not be published. Required fields are marked *