Skip to content

Instantly share code, notes, and snippets.

@gnepud
Created July 23, 2011 19:25
Show Gist options
  • Save gnepud/1101781 to your computer and use it in GitHub Desktop.
Save gnepud/1101781 to your computer and use it in GitHub Desktop.
Using chmod to recursively change directories / files
cf: http://www.linuxquestions.org/questions/linux-software-2/using-chmod-to-recursively-change-directories-files-293310/
find [YOURDIR] -type d -exec chmod 755 {} \;
find [YOURDIR] -type f -exec chmod 644 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment