Skip to content

Instantly share code, notes, and snippets.

@simonewebdesign
Created January 29, 2013 11:51
Show Gist options
  • Save simonewebdesign/4663701 to your computer and use it in GitHub Desktop.
Save simonewebdesign/4663701 to your computer and use it in GitHub Desktop.
Chmod all files to 664 and folders to 775 of a given directory. First argument is the directory.
# for files
find $1 -type f -print0 | xargs -0 chmod -v 664
# for folders
find $1 -type d -print0 | xargs -0 chmod -v 775
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment