Linux – 一次修改整批的路徑與檔案的權限

文件檔案 644,路徑 755

cd /home/user/domains/domain.com/public_html
find . -type d -exec chmod 0755 {} \;
find . -type f -exec chmod 0644 {} \;

參考

發表迴響