小编use*_*538的帖子

递归 chmod

我试图使用以下chmod文件夹和文件:

find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
Run Code Online (Sandbox Code Playgroud)

但我想知道:

  1. 如何在一行中使用find和排除目录...

  2. 哪种方法更好,find -exec或者xargs

command-line find chmod xargs

6
推荐指数
2
解决办法
1214
查看次数

标签 统计

chmod ×1

command-line ×1

find ×1

xargs ×1