copy from : https://linux.cn/article-9457-1.html
du - disk usage ,统计给定文件或者文件的大小
#du -h /home //会列出每个文件和文件夹;
#du -sh /home // -s = --sum,给出total统计;
df - disk free,列出各个分区的大小和使用情况
#df -h
#df -hT /etc // 针对某个分区
-h : 以人类易读的方式给出结果
copy from : https://linux.cn/article-9457-1.html
du - disk usage ,统计给定文件或者文件的大小
#du -h /home //会列出每个文件和文件夹;
#du -sh /home // -s = --sum,给出total统计;
df - disk free,列出各个分区的大小和使用情况
#df -h
#df -hT /etc // 针对某个分区
-h : 以人类易读的方式给出结果