Skip to content

Instantly share code, notes, and snippets.

@ip413
Last active November 28, 2016 13:48
Show Gist options
  • Save ip413/4e9b64915741bd8f7258d126b29c06b9 to your computer and use it in GitHub Desktop.
Save ip413/4e9b64915741bd8f7258d126b29c06b9 to your computer and use it in GitHub Desktop.
Recursively resets permissions for current folder and all files inside it to 755 and 644
#!/bin/bash
# Recursively resets permissions for current folder and all files inside it to 755 and 644.
# No file will be executable.
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment