How to watch a directory size in Linux Shell

How (only) to show the size of the directory. LS command may show more trivial infos I don't need.

asked Nov 21, 2015 by harryxiyou (5,830 points)

1 Answer

 
Best answer

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
answered Nov 21, 2015 by harryxiyou (5,830 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...