Linux下查看磁盘与目录的容量——df、du

df -h

-h:以人们较易阅读的GB,MB,KB等格式自行显示

文件系统  容量  已用  可用  已用%  挂载点

 du -sh /*

du -h –max-depth=1 /var/log/*

查看/var/log路径下文件的大小

原文地址:https://www.cnblogs.com/maxmoore/p/12213832.html