Skip to content

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

Last updated on March 13, 2019

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

Be First to Comment

Leave a Reply