Skip to content

Instantly share code, notes, and snippets.

@AlexanderRD
Created October 7, 2014 14:04
Show Gist options
  • Save AlexanderRD/dad3583959c1ff3651b4 to your computer and use it in GitHub Desktop.
Save AlexanderRD/dad3583959c1ff3651b4 to your computer and use it in GitHub Desktop.
Setting folder and file permissions
To change all the directories to 755 (-rwxr-xr-x):
find /opt/lampp/htdocs -type d -exec chmod 755 {} \;
To change all the files to 644 (-rw-r--r--):
find /opt/lampp/htdocs -type f -exec chmod 644 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment