LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-28-2006, 11:03 PM   #1
kniwor
Member
 
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, 11:53 PM   #2
zhangmaike
Member
 
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:
Code:
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>:
Code:
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:
Code:
ls -rlash --sort=size
should work well. The larger files will be sorted toward the bottom.

Last edited by zhangmaike; 08-29-2006 at 12:16 AM.
 
Old 08-29-2006, 07:36 AM   #3
kniwor
Member
 
Registered: Aug 2005
Distribution: Slackware 12
Posts: 106

Original Poster
Rep: Reputation: 15
k, really sorry again,
Quote:
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.
 
  


Reply


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 05: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 05:45 AM
diskspace.... yenonn Slackware 5 03-19-2004 08:39 PM
Not enough diskspace for installing Gentoo?!? Bodycount Linux - Distributions 4 10-11-2003 05:01 PM
how to check diskspace nbtaher Linux - General 1 05-16-2002 07:42 PM


All times are GMT -5. The time now is 02:46 PM.

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