Skip to content

Fix file (644) and directory (775) permissions in Linux easily

Last updated on November 22, 2023

For directories only do this.

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

For files only do this.

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

And finally, this command will add execute permissions to directories.

chmod -R +X

Published inLinux