Massive Change of File Permissions

Use the powerful find command with exec parameter to change permissions using chmod.

To change permissions to 644 for all files in /path/to, use the following command:

find /path/to -type f -exec chmod 644 '{}' \;

In case of directories:

find /path/to -type d -exec chmod 755 '{}' \;

Your comments are welcome!

Don't miss any updates!

Subscribe to our free NewsLetter