Skip to content

Instantly share code, notes, and snippets.

@jasperf
Forked from infolock/chmod_files_and_dirs.sh
Created July 7, 2014 11:40
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 jasperf/63a17a805dcae113c057 to your computer and use it in GitHub Desktop.
Save jasperf/63a17a805dcae113c057 to your computer and use it in GitHub Desktop.
# Recursively find all files in the current directory and change to access of 644 and for directories to 755
# Recursively find all files in the current directory and change to access of 644
find ./ -type f -exec chmod 644 {} \;
# Recursively find all directories in the current directory and change to access of 755
find ./ -type d -exec chmod 755 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment