gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-01 22:58:23 24 4
gpt4 key购买 nike

我将如何使用 chmod 将所有文件更改为 644,并将所有文件夹更改为 755来自 linux命令提示符? (终端)

最佳答案

一种方法可能是使用查找:

对于目录

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

对于文件
find /desired_location -type f -print0 | xargs -0 chmod 0644

关于terminal - 将目录的所有文件和文件夹权限更改为 644/755,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18817744/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com