Redian新闻
>
用find查找文件是如何过滤无用信息
avatar
用find查找文件是如何过滤无用信息# Unix - 噫吁兮,危乎高哉
s*r
1
用find -name命令查找文件和目录,如果搜索范围大,经常会出现一大堆Permission
denied的垃圾信息,如何过滤掉它们,之前好象有人问过,但我找不到那个帖子了。谢谢
指教。
avatar
H*a
2
add this in the end of the command line
2> /dev/null

【在 s****r 的大作中提到】
: 用find -name命令查找文件和目录,如果搜索范围大,经常会出现一大堆Permission
: denied的垃圾信息,如何过滤掉它们,之前好象有人问过,但我找不到那个帖子了。谢谢
: 指教。

avatar
q*g
3
Only bash can do this, tcsh is not that smart for instance, hehe.

【在 H***a 的大作中提到】
: add this in the end of the command line
: 2> /dev/null

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。