How to watch a directory size in Linux Shell
Posted on In QAHow (only) to show the size of the directory. LS command may show more trivial infos I don’t need.
DU command can do it. DU is “du – estimate file space usage”. Users could use ‘–max-depth=N’ parameter to print the level of information. One example is as follows.
$ du -h --max-depth=0 hummer-svn
11G hummer-svn