Linux下查看某个目录大小

# du -h –max-depth=0  /root
228M /root

 

# du -h –max-depth=1  /root
36K /root/.ipython
12K /root/.ssh
175M /root/old
2.5M /root/.local
4.0K /root/.ipynb_checkpoints
92K /root/.pip
16K /root/.aptitude
16K /root/.jupyter
31M /root/.cpan
8.0K /root/.oracle_jre_usage
20M /root/.cache
228M /root