Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-28-2006, 10:03 PM   #1
Registered: Aug 2005
Distribution: Slackware 12
Posts: 106

Rep: Reputation: 15
wierd diskspace usage

k, here is the problem, there's this user on the system, no quota being enabled on the user, using about 4G of diskspace, and i cant figure out where it is, when i do the following
du -hs /home/*
it gives 3.8G to be the size of his home directory.
but when i run the following command
du -hs /home/<the_user>/*
nothing is larger than a few Mb, and cat add up to 3.8Gb in any way.

I also tried
"ls -al" to see if any directories starting with "." are made but there's nothing too large.

i need some help here.
Old 08-28-2006, 10:53 PM   #2
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
If it says 3.8G, then you're using 3.8G. Space adds up, even if it's only a few meg. du doesn't lie.

For the user with the 3.8G home directory, try:
du -csh /home/<the_user>/*
The -c option will add the sizes up for you and print the total usage at the end.

If you want to find out how much space your dotfiles are using, do, from within /home/<the_user>:
du -csh $(ls -A)
This will total up absolutely everything within the <the_user>'s home directory.

It sounds like the 3.8G of usage is just spread out rather than isolated to one or two directories/files.

If you want to quickly find the larger of these directories/files:
ls -rlash --sort=size
should work well. The larger files will be sorted toward the bottom.

Last edited by zhangmaike; 08-28-2006 at 11:16 PM.
Old 08-29-2006, 06:36 AM   #3
Registered: Aug 2005
Distribution: Slackware 12
Posts: 106

Original Poster
Rep: Reputation: 15
k, really sorry again,
du -chs $(ls -A) | grep G
told me that the guys had 3G in his trash, and 700Mb was the total space he was using, which i never expected.


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
OMFG, where is that diskspace going to .. Manu-M *BSD 4 09-03-2004 04:47 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM
diskspace.... yenonn Slackware 5 03-19-2004 07:39 PM
Not enough diskspace for installing Gentoo?!? Bodycount Linux - Distributions 4 10-11-2003 04:01 PM
how to check diskspace nbtaher Linux - General 1 05-16-2002 06:42 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:53 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration