Active Topics

 


Reply
Thread Tools
Posts: 452 | Thanked: 522 times | Joined on Nov 2007
#1
Most of you might know about "DU", but I found a handy script today that lets you drill down in a command prompt. Works pretty quickly also, figured I would share it since it might help someone else out -- Ive used it already to move and remap a couple really "large" items to my 8gb card since the app manager insists on sticking everything on the main card.

http://www.unixreview.com/documents/...11e_script.htm

Nathan.
 
free's Avatar
Posts: 739 | Thanked: 159 times | Joined on Sep 2007 @ Germany - Munich
#2
And there's also
du+df=di

apt-get install di
 
Posts: 151 | Thanked: 14 times | Joined on Dec 2007
#3
why do not just 'df -H' ?
 
Khertan's Avatar
Posts: 1,012 | Thanked: 817 times | Joined on Jul 2007 @ France
#4
or use my disksize home applet

based on df -h command line
 
Posts: 452 | Thanked: 522 times | Joined on Nov 2007
#5
Well, unless I have totally missed something -- none of you bothered to try the script each of those do something totally different then what duspus does. ;-)

DU is disk Usage; but gives you it file based -- which is much closer to what duspus does. You can some of it using DU piped through a sort, and tail to do something simular. But I hate remembering all the pipes and parameters. DF/DI is a whole disk size/free overview.

Duspus is a script that basically a text based list of anything in the current directory and below it and the space used sorted in size order. So if I run it at the /home/user directory it will show:
1. <size> MyDocs
2. <smaller size> .Mozilla
...
16 <even smaller size> .xmame

Then it shows a prompt asking you for:
a number 1-16 to navigate to the above directories listed (and then it shows you that folder list in its size order) Or you can hit f)orward or b)ackwards to show the next page of sized items in the current directory. Or you can run several other commands in the current directory. It allows you to navigate to what folders/programs are using the most disk space on your machine, EASILY. ;-)

Not quite as nice as something like KDirStat or Baobab, but basically a text based version of a Directory Stat program. If any of you know a nice graphic Directory Stat like Boabab/KDirStat for the 2008 OS, I'd be interested. Until then, this script works really well to make sure I can move certain large items from the internal card to the external card. ;-)

Nathan.
 

The Following User Says Thank You to Nathan For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 19:02.