Chmod files but not directories and vice versa

Files:

find top/directory -type f -exec chmod 0644 '{}' \;

Directories:

find top/directory -type d -exec chmod 0755 '{}' \;
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *