LS Inode – How to List All Files with the Same Inode Number

inodels

Let's say when I do ls -li inside a directory, I get this:

12353538 -rw-r--r-- 6 me me 1650 2013-01-10 16:33 fun.txt

As the output shows, the file fun.txt has 6 hard links; and the inode number is 12353538.

How do I find all the hard links for the file i.e. files with the same inode number?

Best Answer

find /mount/point -mount -samefile /mount/point/your/file
Related Question