Created
March 24, 2020 08:16
-
-
Save aamsur-mkt/9e612056bfedb5b82347d78d387e9215 to your computer and use it in GitHub Desktop.
Chmod folder recursively
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find storage/ -type d -exec chmod 775 {} \; | |
find storage/ -type f -exec chmod 664 {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
with filename filter -name "*.err" , like so :
find storage/ -type f -name "*.log" -exec chmod 664 {} \;