咨询热线:4006-75-4006
售前:9:00-23:30 备案:9:00-18:00 技术:7*24h
Linux下查看目录大小的命令是du,从man中找到几个常用的参数就可以轻松的统计某个文件夹的容量.
1.统计出目录的总大小,并以比较合适的单位表示
-h, –human-readable
print sizes in human readable format (e.g., 1K 234M 2G)
-s, –summarize
display only a total for each argument
2.当然了,你还可以让结果以单位b、k、m来表示
3.显示目录的总大小及目录树中各文件夹的大小,并以较好的单位表示
du -h /boot