How to chmod folders or files only


chmod

To chmod folders only, you can use command:

chmod 755 $(find /path/to/base/dir -type d)

To chmod files only, you can use command:

chmod 644 $(find /path/to/base/dir -type f)

Related Post

No comments yet.

Leave a Reply