Skip to content

Instantly share code, notes, and snippets.

@VRanger
Created August 24, 2018 16:55
Show Gist options
  • Select an option

  • Save VRanger/baee19d9fbba47c415b89e61cc92e29c to your computer and use it in GitHub Desktop.

Select an option

Save VRanger/baee19d9fbba47c415b89e61cc92e29c to your computer and use it in GitHub Desktop.
#!/bin/bash
find $HOME -type d -exec chmod 755 {} \;
find $HOME -type f -exec chmod 644 {} \;
find . -type f -name '*.h' -exec chmod 644 {} \;
find . -type f -name '*.c' -exec chmod 644 {} \;
find . -type f -name '*.py' -exec chmod 755 {} \;
find . -type f -name '*.sh' -exec chmod 755 {} \;
find . -type f -name '*.pl' -exec chmod 755 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment