![]() |
Disk Usage - Command Line Script
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. |
Re: Disk Usage - Command Line Script
And there's also
du+df=di apt-get install di |
Re: Disk Usage - Command Line Script
why do not just 'df -H' ?
|
Re: Disk Usage - Command Line Script
or use my disksize home applet :)
based on df -h command line :) |
Re: Disk Usage - Command Line Script
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. |
All times are GMT. The time now is 12:08. |
vBulletin® Version 3.8.8