LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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, 03: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, 04:32 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,962

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
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/Novell 4 02-22-2013 02:17 PM
How much disk space do I have free? Ian D Linux - General 5 10-27-2005 07:22 PM
Can't free disk space mcm8327 Linux - Software 4 03-29-2004 09:19 AM
Free up disk space TheShemeta Slackware 5 11-26-2003 05:50 PM
free disk space? Alf829 Linux - Newbie 3 08-01-2003 12:26 PM


All times are GMT -5. The time now is 07:40 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration