What is, on Linux, the way to get a list of a file's hardlinks ?
|
feedback
|
| |||
|
feedback
|
|
Start by ensuring that the hardlink count from If so, then you can search for them, somewhat painstakingly:
This finds all files in a given path and compares the inode number of your source file against that of the found file(s). Hardlinks share the same inode. So if they match you have yourself a hardlink. | ||||
|
feedback
|
|
There may be an easier/quicker method but
which gives something similar to
then using the inode number from the Inode line,
| |||||
feedback
|
|
For hardlinks only:
to also include symlinks:
Using | |||
|
feedback
|