Posted By

noelj on 07/03/11


Tagged


Versions (?)

Recursively change directory or file permission in linux


 / Published in: Bash
 

URL: http://www.techtalkz.com/blog/tips-n-tricks/recursively-change-only-directory-permissions-on-linux-chmod.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 {} \;

Report this snippet  

You need to login to post a comment.