查看文件大小du命令

1.du -sh

查看当前目录总共占的容量,而不单独列出各子项占用的容量 ,在所在目录输入du -sh:

2.只显示 Images 文件夹的大小

[Linux]$  du -h Images/
1.7M    Images/


3.只显示当前文件夹的总大小 [Linux]$ du -hs 2.4M .

 

https://gnu-linux.readthedocs.io/zh/latest/Chapter01/00_du.html

posted @ 2022-03-03 17:29  Tomorrow1126  阅读(85)  评论(0编辑  收藏  举报