`

find 命令

 
阅读更多

查询 含有 “hostname” 的文件

find . -type f -print | xargs grep "hostname"

 

递归修改文件夹权限(不修改文件)

find . -type d -exec chmod 775 {} \;  

 

批量修改权限

find . -perm 744 -print | xargs chmod g+x,o+x

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics