beer9
asked on
How to find the hard linked file?
How can I see whether a given file is hardlinked or not? like given a file how can I find how many files are sharing the same inode number? Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Whoops, inode was a type, I meant inum. To prevent find searching outside the filesystem, add the -xdev flag, eg:
find . -xdev -type f -inum <inode_number> -ls
find . -xdev -type f -inum <inode_number> -ls
ASKER
Thank you :-)
From: http://www.basiclinuxcommands.com/2008/08/view-file-inode-directory-inode.html