Change the permissions of all files and all directories recursively

Posted on

Change the permission of every file to 0644 recursively:

find . -type f -print0 | xargs -0 chmod 0644

Change the permission of every directory to 0755 recursively:

find . -type d -print0 | xargs -0 chmod 0755

---