Massive Change of File Permissions
August 28th, 2013 3,108
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 welcomed!
Sign-up for our free email
newsletter. Get updates when new
tutorials and tips are published. You can unsubscribe
anytime with a click.
Your comments are welcomed!
This site actively encourages commenting on any post. Comments are not pre-moderated, but this community does not tolerate direct or indirect attacks, name-calling or insults. Please, read terms of use and Comment Policy at privacy policy.