0
点赞
收藏
分享

微信扫一扫

linux find命令忽略权限不够的目录


​​welcome to my blog​​

将错误信息重定向到别的位置就行, 比如在当前目录寻找hello.py文件,同时将错误信息输出到/tmp/tempfile里, 这样终端显示的就是干净的结果了

find . -name "hello.py" 2> /tmp/tempfile


举报

相关推荐

0 条评论