chmod only files or directories recursively

To chmod only files or directories recursively, do the following:

For files:

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

For directories

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

ABOUT THE AUTHOR

Anthony Leon

Author has no description.

NO COMMENTS

Leave a comment

Your email is never published or shared.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>