Skip to content

Instantly share code, notes, and snippets.

@2ec0b4
Created November 1, 2014 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2ec0b4/3ee9dd328afd62d8329d to your computer and use it in GitHub Desktop.
Save 2ec0b4/3ee9dd328afd62d8329d to your computer and use it in GitHub Desktop.
Recursively change the access permissions to directories and files
#!/bin/bash
cd /path/to/dir/
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