在目录中查找符号链接 [英] Find symbolic links in a directory

查看:140
本文介绍了在目录中查找符号链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



类似于这样的



<$>

如何在Unix中以递归方式找到目录中的所有符号链接? p $ p> find。 -name * .o

但符号链接符合

  find。型符号链接


解决方案

  find。 -type l 

应该有效。 http://linuxmanpages.com/man1/find.1.php


How can one recursively find all the symbolic links in a directory in Unix?

Something like this

find . -name *.o

but for symbolic links along the lines of

find . -type symlink ???

解决方案

find . -type l

Should work.

http://linuxmanpages.com/man1/find.1.php

这篇关于在目录中查找符号链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆