du -ah -d 1 / | sort -h |
命令参数说明:
du
-a:write counts for all files, not just directories
-h:print sizes in human readable format (e.g., 1K 234M 2G)
-d:展示的目录深度
-s:display only a total for each argument
sort(默认从小到大排列)
-h:compare human readable numbers (e.g., 2K 1G)
扫描二维码,分享此文章