I just want to change permissions on directories, not the files contained within.
find . -type d -exec chmod 755 {} +
Assuming you're in the directory you want to start in:
find . -type d | xargs chmod 755
or whatever permissions you want.
find . -type d -exec chmod 755 {} \;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With