LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 620|回复: 4

怎样才知道那些文件是相互link的?

[复制链接]
发表于 2004-10-15 23:10:37 | 显示全部楼层 |阅读模式
我指的是hard link。
发表于 2004-10-16 09:49:15 | 显示全部楼层
$ ls -i | sort
Those files with the same i-node numbers (i.e. the numbers preceding each file) are hard-linked.
发表于 2004-10-17 05:34:35 | 显示全部楼层
but different directories?..

我以前看过一个这样的问题,忘记答案了。:(。
好像是用find的。。
发表于 2004-10-17 11:54:47 | 显示全部楼层
最初由 黯然销魂 发表
but different directories?..
我以前看过一个这样的问题,忘记答案了。:(。
好像是用find的。。

$ find ~/ -links +1 | xargs ls -idFf --color | sort
可惜会把很多目录给列出来。
发表于 2004-10-17 13:13:57 | 显示全部楼层
谢谢。我回去试试。:)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表