Return to Snippet

Revision: 64584
at August 25, 2013 09:01 by nkm

Initial Code
# This command will recursively search your current directory and chmod all directories & sub-directories only:
find . -type d -exec chmod 755 {} \;

# The following command will chmod all files only (ignoring the directories):
find . -type f -exec chmod 644 {} \;

Initial URL

Initial Description

You want to recursively change all of the file permissions only on folders & subfolders in a directory, but not the files (or vice-versa: you want to change the permissions on files only, not folders).

Initial Title
Recursively Change File Permissions on Files/Folders Only [*nix]

Initial Tags

Initial Language