Reputation: 496
If two paths have the same inode number; one of them is a hard link. Do we have a system call to know which one of them is a hard link. Or any other programatic way in C.
Upvotes: 0
Views: 38
Reputation: 136208
If two paths have the same inode number; one of them is a hard link.
A file name is a hard link by definition in Unix/Linux. You cannot distinguish between hard links apart from their paths.
Upvotes: 1