Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Setting file permissions on multiple files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Setting file permissions on multiple files
Authored by: guspos on May 05, '10 01:56:16AM

Thank you robg!
an optimized version would be:

find . -type d -print0 | xargs -0 chmod 755
find . -type f -print0 | xargs -0 chmod 644

This works also if you have files or directories with spaces.



[ Reply to This | # ]