Skip to content

Instantly share code, notes, and snippets.

View gnepud's full-sized avatar

Peng Du gnepud

  • Grenoble, France
View GitHub Profile
@gnepud
gnepud / gist:1101781
Created July 23, 2011 19:25
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 {} \;