Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a linux box on my school's server. When I was trying to install Protocol Buffers, disk usage is reported as exceeded. So I checked my disk usage by two command on my home directory:

du -h 
535M    .

df -ha
home.XXX:/export/home/XXX                 
9.7T  1.5T  8.3T  15% /home/XXX

Are they supposed to be same number? Which one is the real usage of my disk on Linux box?

share|improve this question
    
Are there any Quotas set up ? –  Lawrence Apr 14 at 8:57
    
yes, I believe. –  John Hass Apr 14 at 8:58

1 Answer 1

up vote 2 down vote accepted

du tells you how much data there is in the directory where you ran it. df tells you how much data is in total on the volume where your home directory is located. Your home directory is mounted remotely (over NFS); it is likely that it is on the same volume as other home directories, so df reports the data used by all the home directories on the same volume.

Your disk space may be exceeded even if there is room left on the device. A school environment is highly likely to have quotas in place. If you got a message “quota exceeded” as opposed to “no space left on device”, then you've exceeded your quota. Run the command quota to see what your quota is and how much of it you're using.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.