Change permissions on folders/files only

on January 11, 2011. in Development. A 1 minute read.

This is just a quick reminder for myself. Should really remember this one. Changes permissions on folders|files only.

$ find /path/to -type d -exec chmod 775 {} \;
$ find /path/to -type f -exec chmod 664 {} \;

Tags: permissions, shell.