LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   free disk space (http://www.linuxquestions.org/questions/linux-software-2/free-disk-space-310253/)

mp4-10 04-06-2005 03:50 AM

free disk space
 
I would like to write c code which returns number of bites on my hard disk free space.
There statfs structure is used but in that structure only number of free blocks and nodes could be found.
Is it possible to get free space in Bites from this two data(blocks and nodes) and how?

Thanx

bathory 04-06-2005 04:32 AM

Take a look at "df" command :
Code:

man df


All times are GMT -5. The time now is 11:21 PM.