How to chmod 755 all directories but no file (recursively)?

chmod 755 $(find /path/to/base/dir -type d)
chmod 644 $(find /path/to/base/dir -type f)

Leave a Reply

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