Skip to content

Instantly share code, notes, and snippets.

@bluemanos
Created December 16, 2014 10:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bluemanos/81d2c5d34def11375ec1 to your computer and use it in GitHub Desktop.
Save bluemanos/81d2c5d34def11375ec1 to your computer and use it in GitHub Desktop.
Recursive change chmods for directories and files
#!/bin/sh
path=${1:-.}
echo $path
echo $(date)
find "$path" -type d -exec chmod 755 {} \;
find "$path" -type f -exec chmod 644 {} \;
echo $(date)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment