Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Disk space analyzer for console?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
skibbi
Apprentice
Apprentice


Joined: 13 Apr 2004
Posts: 202
Location: Rostock - Germany

PostPosted: Fri Jun 06, 2008 12:35 pm    Post subject: Disk space analyzer for console? Reply with quote

Hi,
I'm looking for a program like KGraphSpace (Screenshots) that shows me which directory does use how many disk space but it must run within the console because it's a server without X.
I want to find the folders which contains the biggest files to clean up my system.
Back to top
View user's profile Send private message
di1bert
l33t
l33t


Joined: 16 May 2002
Posts: 963
Location: Oslo, Norway

PostPosted: Fri Jun 06, 2008 1:38 pm    Post subject: Reply with quote

I'd use a little bash scripting:
Code:

#!/bin/bash

cd /
for dir in * ; do du -sh $dir ; done



You could also use sort to neaten it up a little if need be...

HTH

-m
Back to top
View user's profile Send private message
skibbi
Apprentice
Apprentice


Joined: 13 Apr 2004
Posts: 202
Location: Rostock - Germany

PostPosted: Sat Jun 07, 2008 8:22 am    Post subject: Reply with quote

Thank you for this small but nice script. It's sufficant for my needs. :)
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Sat Jun 07, 2008 10:34 am    Post subject: Reply with quote

Code:
du --max-depth=1

_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
eaglex
n00b
n00b


Joined: 03 Dec 2005
Posts: 15

PostPosted: Sun Jun 08, 2008 6:50 am    Post subject: Reply with quote

gt5 is also nice (it's in portage).
Back to top
View user's profile Send private message
Silentsand74
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jul 2007
Posts: 131

PostPosted: Sun Jun 08, 2008 3:02 pm    Post subject: Reply with quote

I can also recommend ncdu (screen).
Moreover it is also included in the portage.

HINT: if you want to scan your all directories starting from root,
but excluding other partitions,
try to unmount those partitions.
This will speed up the calculating process ;).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum