小编典典

将目录的所有文件和文件夹权限更改为 644/755

all

如何使用命令提示符将所有文件更改为 644 并将所有文件夹更改为chmod755 linux?(终端)


阅读 74

收藏
2022-06-09

共1个答案

小编典典

一种方法可能是使用 find:

对于目录

find /desired_location -type d -print0 | xargs -0 chmod 0755

对于文件

find /desired_location -type f -print0 | xargs -0 chmod 0644
2022-06-09