- 找到失效的符号链接并删除
find . -xtype l -exec rm {} \;
find -xtype l:
We’ll use the l flag with xtype, to tell it to search for links, return broken links:
参考文章
本文介绍了一个实用的命令行技巧,利用find命令结合xtype标志来查找并删除系统中的失效符号链接。这种方法对于维护文件系统的整洁非常有效。
find . -xtype l -exec rm {} \;
find -xtype l:
We’ll use the l flag with xtype, to tell it to search for links, return broken links:
参考文章
3564
643
529

被折叠的 条评论
为什么被折叠?