Changing permissions recursively by files and directories

/ Published in: Bash
Save to your folder(s)

In order to avoid make files executable, you can use these to chmod files and directories differently.

Copy this code and paste it in your HTML
  1. for folders(directories):
  2. find . -type d -exec chmod 777 {} \;
  4. for files:
  5. find . -type f -exec chmod 666 {} \;


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.