Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google site



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-16-2001
Registered User
 

Join Date: Oct 2001
Posts: 4
Angry Hard Dirve Space Remaining

DOES ANYONE KNOW IF THERE IS ANY C CODE YOU CAN USE WITHIN UNIX TO FIND THE REMAINING DISK SPACE ON A HARD DRIVE.
Sponsored Links
  #2 (permalink)  
Old 10-16-2001
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,150
You can use the statvfs() system call to get statistics about file systems. That's the one to use.

Your os may support earlier system calls like statfs() or ustat(). I would avoid these and use the more modern statvfs().
  #3 (permalink)  
Old 10-16-2001
Registered User
 

Join Date: Oct 2001
Posts: 4
THANKS

DO YOU KNOW WHERE YOU CAN FIND EXAMPLES OF HOW TO USE THESE FUNCTIONS???
  #4 (permalink)  
Old 10-17-2001
guest100's Avatar
Banned
 

Join Date: Oct 2001
Location: London, UK
Posts: 146
you can use:

<pre>

df

and

df -k

</pre>

these commands will sort you out
Good luck
  #5 (permalink)  
Old 10-17-2001
Registered User
 

Join Date: Oct 2001
Location: South Africa
Posts: 2
try using df -v to show your used & remaining space of all your filesystems. this works in SCO unix - not sure about other versions
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Hard Disk drive space gone missing... Ecclesiastes UNIX for Dummies Questions & Answers 8 05-11-2006 04:00 PM
Re-allocating hard drive space annointed3 UNIX for Dummies Questions & Answers 4 01-06-2006 11:44 AM
Scripts for calculating size and remaining space of a directory automatically. leonall Shell Programming and Scripting 1 12-13-2005 02:30 PM
Remaining Space After Mirroring cgege HP-UX 1 03-08-2004 01:37 PM
Disk Space Remaining spu230479 Programming 2 10-23-2001 04:56 AM



All times are GMT -4. The time now is 01:53 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2010. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0