遞迴修改目前資料夾下的所有檔案為 644
find . -type f -exec chmod 644 {} \;
遞迴修改目前資料夾下的所有資料夾為 755
find . -type d -exec chmod 755 {} \;
參考: Linux下只對檔案或資料夾chmod