Created
March 23, 2014 15:49
-
-
Save cuibonobo/9724980 to your computer and use it in GitHub Desktop.
Getting the size of all files in a directory. The OS returns the value pretty quickly, but for large directory trees it can take a while. For example, it took about 40s to report the size of a 160GB directory.
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
| du -sh /path/to/directory |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment