![](/img/trans.png)
[英]Check the Total, used and available Hard Drive Disk space in RED HAT Enterprise Linux 7.6
[英]reserve,used,available,total disk space in linux
是否有任何单个 linux 命令或单个系统调用可以获取所有 4 个信息(总计、使用、免费、保留)?
我检查了以下内容:
df: does not give reserve disk space
stat(): does not give reserve disk space
statfs(): gives total and free only
我尝试使用“tune2fs -l /dev/vda1”作为 reserved ,但是 tune2fs 和 df 命令的输出之间存在一些差异。总数不是已用、免费和保留的总和。
用 df 输出进行计算:
保留=总已使用-免费
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.