博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
linux 查找软链接_如何在目录中查找损坏的软链接?
阅读量:2519 次
发布时间:2019-05-11

本文共 602 字,大约阅读时间需要 2 分钟。

linux 查找软链接

How to find broken symbolic links in a directory which have many symbolic links?

如何在包含许多符号链接的目录中查找损坏的符号链接?

Use this to find broken soft links:

使用此查找断开的软链接:

find -xtype l /path/to/dir/to/find/in/

You can also specify the action by -exec. For example, delete the soft links that are broken in the current directory:

您还可以通过-exec指定操作。 例如,删除当前目录中断开的软链接:

find -xtype l -exec rm -f {} ;

Not /path/to/dir/to/find/in/ specified here, which means . (the current directory).

/path/to/dir/to/find/in/此处指定/path/to/dir/to/find/in/ ,表示. (当前目录)。

Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。

翻译自:

linux 查找软链接

转载地址:http://nzlwd.baihongyu.com/

你可能感兴趣的文章
javascript操作cookie
查看>>
深入理解HTTP协议(转)
查看>>
NHibernate讲解
查看>>
剑指offer-二叉树中和为某一值的路径
查看>>
spark算子
查看>>
(转)Linux服务器SNMP常用OID
查看>>
USB各种模式 解释
查看>>
数据访问-----ADO.NET 小结和练习
查看>>
Linux lsof详解
查看>>
子组件给父组件传数据
查看>>
unix/linux下的共享内存、信号量、队列信息管理
查看>>
Hilbert先生旅馆的故事
查看>>
采访吴岳师兄有感 by 王宇飞
查看>>
LVS简略介绍
查看>>
hdu 1021 Fibonacci Again
查看>>
JVM架构_XmnXmsXmxXss有什么区别:转
查看>>
PHPExcel 使用心得
查看>>
洛谷 P3374 【模板】树状数组 1(单点加,区间和)
查看>>
verilog 代码编写小记
查看>>
PyQT的安装和配置
查看>>