My Location Message Board E-Mail
pcbypaul
pc software, repair
      return to
    Homepage
bg

 
WP Clipart

Not Just for Geeks Anymore
Scripts 'N Tips
Xterm Use
Firefox Updating
update Java
Firefox Keys
Themes offline
Start Firefox
Kill Firefox
Firefox 16x16
Firefox Problems
Compiling
Compile wxPython
Disk Usage
CD Player
cdArray
Find-Installed
Backgrounds
Gimp Splash
Links
LinuxPackages
IceWalkers
Freshmeat
Linux Today
Slashdot



Disk Usage


  This is a quick way to peek at your disk usage. It is just manipulating an xterm to format the output of di, a small utility written by Brad Lanam way back in 1994. (Hey, it just works, so why rewrite it or change it? Thanks Brad.)   di being a console program I make it easier for the user to use by sticking a menu item that calls an xterm with a bunch of flags that format the output nicely without having to learn how to manipulate the xterm itself or which of many flags to use to get a nice readout from di.


Here is the tag:
xterm -title "Current Disk Usage" -geom 120x12+20+200 -bg LightYellow -hold -e di -fSMTIOuf1

I used small type above to fit it on one line. If adding a menu item has you confused, See the Menu Editor info on my manual pages if you are using icewm with the menu editor (on one of my builds.) Else look at your distros documentation to find out how to add a menu item.


  Of course, you'll need the little program di, which you can download as a Slack package here -- di-3.11-i686-Paul-1.tgz. It installs di into /usr/local/bin. If you want the source code, get it from the Gentoo site at:

http://www.gentoo.com/di/

Screenshot below....



Screenshot (with nfs paths blurred for security)




  As you can see the output is quite detailed. Call di --help if you want to see all the available options. My menu tag allows for NFS mounted volumes and shows mounting options as well as the actual space used, which I find convenient. (Those IP addresses listed above, 192.168.0.1..., were my NFS mount points.)
Tux Pages created and served by Linux Graphics made/edited by the Gimp   Created with the Gimp byPaul