The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Hardware > Filesystems, Disks and Memory
.
google unix.com




Thread: disk space
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 05-29-2009
pludi's Avatar
pludi pludi is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2008
Location: .at
Posts: 1,846
If you run du on a directory, it will give you the size of that directory, not the disk space used by a user, eg. it won't count the files created by that user in /tmp, /var/tmp or other locations, and it will add files in the directory not owned by that user.

If you want the total size of files owned by a user, use ghostdogs command above.