Fix file permission

Sometimes if you mess up with file permission in a lot of file. It takes time to repair it. This is how to repair file permission in 2 commands

For directory

find [your path here] -type d -exec chmod 755 {} \;

And for file

find [your path here] -type f -exec chmod 644 {} \;
Share

Leave a comment