Created
October 10, 2013 23:46
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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