Skip to content

Instantly share code, notes, and snippets.

@infolock
Created October 10, 2013 23:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save infolock/6927463 to your computer and use it in GitHub Desktop.
Save infolock/6927463 to your computer and use it in GitHub Desktop.
*nix recursive find and change mod access for files and folders within a given path
# 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