LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-06-2005, 02:50 AM   #1
mp4-10
LQ Newbie
 
Registered: Jan 2005
Posts: 16

Rep: Reputation: 0
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
 
Old 04-06-2005, 03:32 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,158
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Take a look at "df" command :
Code:
man df
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No free space on disk, but there is? Recirqie SUSE / openSUSE 4 02-22-2013 01:17 PM
How much disk space do I have free? Ian D Linux - General 5 10-27-2005 06:22 PM
Can't free disk space mcm8327 Linux - Software 4 03-29-2004 08:19 AM
Free up disk space TheShemeta Slackware 5 11-26-2003 04:50 PM
free disk space? Alf829 Linux - Newbie 3 08-01-2003 11:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration