chmod directory only or file only

By | September 20, 2010

This might be useful if you want to chmod a file or directory only

find -type d -print0 |xargs -0 chmod 755
find -type f -print0 |xargs -0 chmod 644

Leave a Reply

Your email address will not be published. Required fields are marked *