![](/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.