Help answer threads with 0 replies.
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, 08:58 AM   #1
LQ Newbie
Registered: May 2004
Location: Perth, Western Australia
Posts: 3

Rep: Reputation: 0
how do I work out where my disk space is going?


I've got a linux dev box with 97% of /var used. What commands do I use or methods do I employ to most effectively work out what massive files are chewing up my disk space?? I've not got a GUI - just command line.

Thanks in anticpation.
Old 08-28-2006, 09:00 AM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 125Reputation: 125
I like to work my way down the filesystem tree using 'du -sh /var/*' or similar.
Old 08-28-2006, 09:28 AM   #3
Senior Member
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
in addition to du -h /var/*, if you append --max-depth=1, then you can identify those directories in var which are the largest, and then work within those.

Last edited by pwc101; 08-28-2006 at 09:30 AM.
Old 08-28-2006, 11:55 PM   #4
LQ Newbie
Registered: May 2004
Location: Perth, Western Australia
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks guys - much appreciated. This quickly helped me to identify that samba was writing massive logs (log level = 3 in smb.conf), deleted the log files, set log level to 1, all is good.


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
disk space hammam12 Linux - Software 7 06-26-2006 07:52 AM
disk space ? calsoft_pg Linux - Software 1 11-07-2005 10:32 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM
Disk space dawsonbdky Linux - General 2 08-16-2004 06:09 AM
Disk space wastage 73 GB Hard disk rajgopalhg Linux - Hardware 2 10-18-2002 03:41 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:46 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