Skip to content

Instantly share code, notes, and snippets.

@aamsur-mkt
Created March 24, 2020 08:16
Show Gist options
  • Save aamsur-mkt/9e612056bfedb5b82347d78d387e9215 to your computer and use it in GitHub Desktop.
Save aamsur-mkt/9e612056bfedb5b82347d78d387e9215 to your computer and use it in GitHub Desktop.
Chmod folder recursively
find storage/ -type d -exec chmod 775 {} \;
find storage/ -type f -exec chmod 664 {} \;
@aamsur-mkt
Copy link
Author

with filename filter -name "*.err" , like so :

find storage/ -type f -name "*.log" -exec chmod 664 {} \;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment