Created
February 21, 2016 15:33
-
-
Save tribou/7c8791bbb1337f3833c4 to your computer and use it in GitHub Desktop.
List file and folder sizes in current directory with bash
This file contains 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
#!/bin/bash | |
# Example usage: sizes path/to/somewhere/ | |
sizes () | |
{ | |
ls -lrt -d -1 ${PWD}/${1}* | xargs du -sh | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment