Last active
December 14, 2015 12:44
-
-
Save HaVonTe1/217043d5cdd60f43719c to your computer and use it in GitHub Desktop.
file stats
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 -maxdepth 2 -type d -exec du -sh {} \; |
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
for i in $(find . -maxdepth 1 -type d) ; do | |
echo -n $i": " ; | |
( find $i -type f | wc -l ) ; | |
done |
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
For directories only do this. | |
find . -type d -exec chmod 775 {} \; | |
For files only do this. | |
find . -type f -exec chmod 664 {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment