查看服务器个人账户所占空间大小:
$ du -h --max-depth=1
[wangsx@localhost ~]$ du -h --max-depth=1 0 ./.mozilla 32K ./.config 46G ./project 3.7G ./software 0 ./data 20G ./anaconda3 4.0K ./.conda 32K ./.nv 70G .
查看某一路径下某一文件夹大小:
$ du -h --max-depth=1 filename/filename1/filename2/
[wangsx@localhost ~]$ du -h --max-depth=1 project/afm_cvpr2019/ 532K project/afm_cvpr2019/.git 16K project/afm_cvpr2019/config 80K project/afm_cvpr2019/data 44K project/afm_cvpr2019/dataset 6.6G project/afm_cvpr2019/experiments 316K project/afm_cvpr2019/figures 5.7M project/afm_cvpr2019/lib 120K project/afm_cvpr2019/modeling 8.0K project/afm_cvpr2019/solver 28K project/afm_cvpr2019/util 6.6G project/afm_cvpr2019/