由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - HOw to find files hardlinked to a same inode?
相关主题
link 一问Am I in trouble?
what's wrong with gcc?fileID
[转载] 问一个file system的问题?problem: "no inode free"
how to contral tar-ed file size?how to repair?turn off a Sun workstation
[转载] where is the 'iostream' file ?how to delete a file with NULL name in unix? (转载)
an AWK question?Help! E297: Write error in swap file
问:direct files to trash but list file namesgroup permission
my script Re: how would you do this?怎样用mail把某一文本文件发送给一个email地址?
相关话题的讨论汇总
话题: inode话题: find话题: hardlinked话题: files话题: same
进入Unix版参与讨论
1 (共1页)
L***e
发帖数: 42
1
Hi, as we use "ls -li" we can see file inode and their number of links.
But how do we find out which files are linked to htis same inode?
for example:
I have a file with inode of: 12345
and I can see there are 3 links (hardlinked)
I guess symbolic link doesn't count on the link number. If I am wrong, correct
me.
How do I find out which other files are of inode 12345? Does find support
find filenames with inode as input? How?
Thanks.
w*****n
发帖数: 94
2

ye, -inum switch of find.

【在 L***e 的大作中提到】
: Hi, as we use "ls -li" we can see file inode and their number of links.
: But how do we find out which files are linked to htis same inode?
: for example:
: I have a file with inode of: 12345
: and I can see there are 3 links (hardlinked)
: I guess symbolic link doesn't count on the link number. If I am wrong, correct
: me.
: How do I find out which other files are of inode 12345? Does find support
: find filenames with inode as input? How?
: Thanks.

1 (共1页)
进入Unix版参与讨论
相关主题
怎样用mail把某一文本文件发送给一个email地址?[转载] where is the 'iostream' file ?
what is the problem? what can I do?an AWK question?
HELP.问:direct files to trash but list file names
What's the quickest way to change various filenames with same format under unix?my script Re: how would you do this?
link 一问Am I in trouble?
what's wrong with gcc?fileID
[转载] 问一个file system的问题?problem: "no inode free"
how to contral tar-ed file size?how to repair?turn off a Sun workstation
相关话题的讨论汇总
话题: inode话题: find话题: hardlinked话题: files话题: same