一条命令设置文件夹755,网页文件644权限
文件夹
find . -exec sh -c "if [[ -d "{}" ]]; then chmod 755 "{}"; else chmod 644 "{}"; fi " \;
文件
find . -type f -print0 | xargs -0 chmod 0644
License:
CC BY 4.0