Chinaunix

标题: 如何查看某个文件有多少个软连接 [打印本页]

作者: vacheli    时间: 2016-01-15 15:04
标题: 如何查看某个文件有多少个软连接
如何查看某个文件有多少个软连接!

我想看某个文是存软连接
作者: haooooaaa    时间: 2016-01-15 15:26
参考这个,

http://stackoverflow.com/questio ... t-link-to-this-file
作者: sundge    时间: 2016-01-15 16:46
lsof 就可以查看
作者: lyhabc    时间: 2016-01-15 17:29
本帖最后由 lyhabc 于 2016-01-15 17:29 编辑

@sundge
find / -lname 67.txt
这个可以
lsof不行的

你是怕删除源文件之后,源文件的快捷方式失效是吧,或者你也想把快捷方式删除掉
作者: 779699413    时间: 2016-01-16 15:08
求助samba服务http://bbs.chinaunix.net/thread-4233467-1-1.html
作者: yjh777    时间: 2016-01-17 16:49
貌似没有办法,
作者: vacheli    时间: 2016-01-18 11:03
回复 4# lyhabc

Thanks,find -lname path/filename 2>/dev/null 这样看看起来会好一点


   
作者: vacheli    时间: 2016-01-18 11:05
回复 2# haooooaaa

您好,-L是什么意思


   




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2