find
Using find, xargs, and chmod commands
chmod does not change the permissions to all directories in a single command line without affecting the permissions of files and vice versa. How can I do that?
You must combine: find, xargs and chmod, for example: