Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Aug 16, 2011 5:14 pm 
Offline
Senior Member

Joined: Tue Aug 17, 2010 5:00 pm
Posts: 61
Edit: Linode 512, runnin Ubuntu 10.10, plans to upgrade to natty tonight

So, I noticed about half of my available space is in use. I know my /srv/www/ directory is taking up only about 2 gigs, but I have also found that 4 gigs are in use else where. I've narrowed down about another 2 gigs, using various du commands such as setting the maxdepth to 1 so I dont have an endless list of subdirs included, to my /var/low folder. Is there a better visual way of viewing where this space is going? I did also notice some very large log files and I just cannot seem to find much info on what they're for and if/how to clear them, like debug.1 etc.


Top
   
 Post subject:
PostPosted: Tue Aug 16, 2011 5:43 pm 
Offline
Linode Staff
User avatar

Joined: Fri Jan 29, 2010 8:44 am
Posts: 65
Location: New Jersey
I've got this in a text file and use it once in a while. Finds the 30 largest files in my home directory:

find ~/ -mount -type f -ls|sort -rnk7 |head -30|awk '{printf "%10d MB\t%s\n",($7/1024)/1024,$NF}'

I'm not sure if it would be terribly slow or not, but JDiskTools offers a pretty great disk space analyzer. You could mount your drive with sshfs on your local box and have it analyze it. You'll get a pretty clickable pie chart.


Top
   
 Post subject:
PostPosted: Wed Aug 17, 2011 1:11 am 
Offline
Newbie

Joined: Fri Nov 19, 2010 5:41 pm
Posts: 4
I tend to use something like:
Code:
du -mac | sort -nr | head -n20

That will get you your top 20 biggest files or directories, in order or space used, with their size listed in megabytes.


Top
   
 Post subject:
PostPosted: Wed Aug 17, 2011 1:24 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
On Windows, I've always used windirstat, which is pretty awesome. Shows the entire hierarchy with folder sizes sorted by percentage use, and shows it graphically in a purdy treemap that makes it trivially easy to spot the largest files and folders.

Now, why do I mention a Windows tool? Because it's a clone (albeit an improved one) of kdirstat. So if you've got a UI set up on your linode (perhaps for VNC/nx/etc), you can give that a shot.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group