简体   繁体   中英

reserve,used,available,total disk space in linux

Is there any single linux command or single system call through which I can get all 4 information(Total,used,free,reserved) ?

I have checked following:

df: does not give reserve disk space
stat(): does not give reserve disk space
statfs(): gives total and free only 

I tried using "tune2fs -l /dev/vda1" for reserved ,but there is some discrepancy between outputs of tune2fs and df command.The total is not coming as sum of used,free and reserved.

Do a calculation with df output :

reserved=total-used-free

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM