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
http://randomtechsolutions.wordpress.com/2010/05/25/recursively-change-file-permissions-on-folders-only-linuxunix/

Initial Description
Problem

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
file

Initial Language
Bash