deeejay

Bash - CHMOD Recursively

Jan 30th, 2014
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.24 KB | None | 0 0
  1. #To change all the files to 644 (-rw-r--r--):
  2.  
  3. find /opt/lampp/htdocs -type f -exec chmod 644 {} \;
  4. find . -type f -exec chmod 644 {} \;
  5.  
  6. #To change all the directories to 755 (-rwxr-xr-x):
  7.  
  8. find /opt/lampp/htdocs -type d -exec chmod 755 {} \;
Advertisement
Add Comment
Please, Sign In to add comment