Change file permissions recursively on directories, or files, only
find . -type d -exec chmod xxx {} \; this finds all directories (excluding files) starting at present working directory and recursively changes permissions to xxx. find name -type d -exec chmod xxx {} \; this starts at the directory "name" in the present working directory and changes permissions on that directory, and all subdirectories under it, to xxx. find . -type f -exec chmod xxx {} \; finds all files (excluding directories) and changes permissions.