Linux查看文件占用大小


 description

查看磁盘占用情况,以k,g,t为单位,显示层级为1

 command

du -h -d 1

 parameter

du : 对目录递归地总结文件集的磁盘使用情况
-h, --human-readable :  人类可读格式的人类可读打印尺寸(例如,1K 234M 2G)
-d,- max-depth=N : 打印一个目录的层级深度N,最大为0

 result

2.1T    ./test
301M    ./cmdhelp
2.1T    .

I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.