View previous topic :: View next topic |
Author |
Message |
skibbi Apprentice
Joined: 13 Apr 2004 Posts: 202 Location: Rostock - Germany
|
Posted: Fri Jun 06, 2008 12:35 pm Post subject: Disk space analyzer for console? |
|
|
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 |
|
|
di1bert l33t
Joined: 16 May 2002 Posts: 963 Location: Oslo, Norway
|
Posted: Fri Jun 06, 2008 1:38 pm Post subject: |
|
|
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 |
|
|
skibbi Apprentice
Joined: 13 Apr 2004 Posts: 202 Location: Rostock - Germany
|
Posted: Sat Jun 07, 2008 8:22 am Post subject: |
|
|
Thank you for this small but nice script. It's sufficant for my needs. |
|
Back to top |
|
|
think4urs11 Bodhisattva
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Sat Jun 07, 2008 10:34 am Post subject: |
|
|
_________________ 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 |
|
|
eaglex n00b
Joined: 03 Dec 2005 Posts: 15
|
Posted: Sun Jun 08, 2008 6:50 am Post subject: |
|
|
gt5 is also nice (it's in portage). |
|
Back to top |
|
|
Silentsand74 Tux's lil' helper
Joined: 10 Jul 2007 Posts: 131
|
Posted: Sun Jun 08, 2008 3:02 pm Post subject: |
|
|
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 |
|
|
|