Recursively change directory or file permission in linux


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



Copy this code and paste it in your HTML
  1. //change directory permission
  2. find /xxx/xxx/xxx -type d -exec chmod 755 {} \;
  3.  
  4. //change file permission
  5. find /xxx/xxx/xxx -type f -exec chmod 644 {} \;

URL: http://www.techtalkz.com/blog/tips-n-tricks/recursively-change-only-directory-permissions-on-linux-chmod.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.