Chmod only files or folders

cd /my/directory

find . -type d -exec chmod 755 {} \;

find . -type f -exec chmod 644 {} \;

find . -exec chown apache:developers {} \;

Last update: July 13, 2022
Created: July 13, 2022