du vs. df

Pete Holsberg pjh at mccc.uucp
Mon Nov 19 02:48:26 AEST 1990


>From TFM, it appears to me that "df <filesystem>" and "du -s
<filesystem>" should give complementary reports, the first giving the
number of 512 byte blocks remaining in <filesystem> and the latter, the
number used.  On a 3B2/400 running SVR3.1.2, they don't.  "du -s /usr2"
reports 1049 blocks used.  "df -t /usr2" reports 108424 free, 117404
total, or 8980 blocks used.  The only files that exist in /usr2 are
directory files.

Could someone please explain what's going on?  Oh, I seem to have lost
incoming news, so would you please email your reply?  If anyone else is
interested, I'll post a summary of the replies.

Thanks,
Pete
-- 
Prof. Peter J. Holsberg      Mercer County Community College
Voice: 609-586-4800          Engineering Technology, Computers and Math
UUCP:...!princeton!mccc!pjh  1200 Old Trenton Road, Trenton, NJ 08690
Internet: pjh at mccc.edu	     Trenton Computer Festival -- 4/20-21/91



More information about the Comp.unix.questions mailing list