Haywire Software (HSw)presentsZ D U - release 2(C)Copyright 1995-2001 Haywire Software Written by: André Jonsson <haywire@fatalunity.com> |
THIS PROGRAM IS DELIVERED "AS IS" AND ANY USE OF THIS PROGRAM IS AT YOUR OWN RISK! THE AUTHOR (OR THE SUPPORTING AUTHOR(S)) DOES NOT TAKE ANY RESPONSABILITY FOR ANY LOSS, OR DAMAGE (PHYSICAL, VIRTUAL OR MENTAL), OF NEITHER DATA, SOFTWARE, NOR HARDWARE, FROM DIRECT OR INDIRECT USAGE OF THIS PROGRAM.
Zdu is a little tool that can come in handy when cleaning up your hard-drive and general disk information.The idea behind Zdu is to scan a path (one or more) and report the content therein, how many directories, how many files and how much a specific directory allocates on the harddisk.
You may now think: "What about selecting 'properties' on a folder in windows?". To cut it short, that feature simply sucks, and will decieve you by reporting sometimes a completely wrong directory size. This is mainly because of the way the filesystem works. Zdu determines the filesystem type and the minimum allocateable size on (i.e. clustersize), and makes all size calculations according to this.
There are several, somewhat similar, programs available on the net today, though none of them, fills my needs, Also, most of them are like >150k in size, fancy graphical interface and all that gibberish, which I do not need, hence Zdu R2 was born :-)
And from v2.4 Zdu has broadend its views slightly by sporting a graphical user interface (GUI)! it might seem a bit bare-boned, but that is a quite intentional.
A computer.More specific: an IBM "compatible" PC.
Even more specific:
CPU: 386 or better
MEM: ~1Mb (GUI version ~2Mb) - this depends on the directory scanned
OS: Windows 9x/NT(Intel)/2000/XP
Free disk space: ~140k (including zip file and installed)And, to put it to some good use, a harddisk is recommended.
At this time no NT-Alpha version has been compiled because I don't have access to any Alpha-based NT box, but if anyone need an Alpha version donations are welcome! :-)
Memory requirements could probably be more, but it seldom uses more than just over 700k. Infact, on my E: drive (now consisting of 28000 files in 2000 dirs with a tree depth of 11) it takes 760k memory (+300k virtual).
And if you think zdu is slow, get a new HD, because over 90% of the CPU power (on my machine) is system time (i.e. disk activity), and Zdu is designed to be streamlined, it always do as little as possible.
Copy the preferred executable file to any directory, preferrably to one that you have search-path to (it's more convienient that way). Ofcourse you may copy both of the executables if you wish.The executables can ofcourse be renamed, e.g. rename the 'zdugui.exe' to 'zdu.exe' is fine. The two executables are standalone, and do not need the other to operate.
zdu.exe Console version zdugui.exe GUI version
Note: this text file does not contain any description of the Zdu GUI. That will hopefully be included in the full v2.4 release.
Zdu's main feature is to scan a given directory and return the ammount of space that it allocates on disk. As default the directories in the directory specified will be accounted for separately, as well as a total size. Please note that Zdu returns the REAL(*) size that the specified path really allocates (for supported filesystems), as opposed to most programs that just returns all file sizes added together (which is basically just crap).An optional filemask can be given to only return allocated size for certain files.
A simple example of Zdu output when running it on my D: drive:
D:\>zdu /h D: "DATA" - FS:FAT32 - 3760:353D Cluster:8k Total: 15 711 338 496 [14G] - Free: 7 148 961 792 [6G] Usage(B) Dirs Files Eff Path --------- ------ ------- ---- -------- 1.9G 378 5646 98% download 13M 32 205 92% RECYCLED 367M 260 5680 93% data 7.6M 3 57 97% usr 3.6G 349 6421 99% turbo 105M 12 138 99% stefan 450M 4 172 99% render 1.0G 233 2400 98% haywire 85M 105 1334 92% program files 262M 292 3206 94% 3D --------- ------ ------- ---- -------- 8.0G 1678 25265 98% D:\ (depth: 10) D:\>_The main GUI looks like this:
Above: Main view Below: Configurations window
C:\> zdu /?This will show a little help page of the command-line usage of zdu. The complex options have more detailed help texts also, accessed with e.g.:/?:QHere follows a complete description of all the switches and options supported by Zdu. Some of them are available (or applicable) only in the console vesion, and are marked as such.
Bugs:
Limitaion:
- Zdu has no understanding of Unicode, and hence may display names of files and/or directories incorrectly.
- Some scanning errors doesn't seem to be possible to quelsh in the GUI version.
If you have found any bugs please e-mail me as soon as possible. I might not have found it yet. Or if you just like to give me some suggestions, or maybe some flames? Praise is accepted also ;-)
- Zdu does not take NTFS' MFT or FAT's FAT table entries into account when calculating the disk usage of a file or directory.
e-mail: haywire@fatalunity.com
What Zdu will hopefully do in the future:What Zdu will NOT do/have:
- Full Unicode compliance.
- Full support for reparse points in NTFS 5. Currently they are detected, but just ignored.
- Support for Windows' shortcuts and Cygwin's soft links. (somehow)
- Optionally show the associated type name instead of file extension in the 'Usage By Extension' list.
- Printing.
Suggestions? Mail me! (feedback is of the essence!)
- A humongus GUI (there are so many (bad) GUIs already).
As you might have seen, there is a Zdu GUI. However, more importantly the GUI is a seperate executable. And the console version is still the main focus. The executables work without the other.- Spread DLL files around the system.
Source code: ~90 kbytes (in ~4000 rows) (mixed C and C++)
Exe-file: ~84 kbytes (console) ~68 kbytes (GUI)
Build time: ~30 sec
Platform: Windows NT 4.0 & Windows 2000
Software: MS Visual C++ 5.0 & 6.0
Hardware: PII-400 384Mb 28G
This little piece of software was written by a bloke named André Jonsson, that's me. I'm from Skellefteå, Sweden. Visit my homepage at: http://haywire.fatalunity.com All revisions of Zdu is downloadable from there. For free of course.Initial programming of Zdu started way back in early 1995, because at the time there were no diskusage programs at all available for the DOS "platform" (that I knew of). As for release 2, the programming of the Win32 next-generation reincarnation began at the dawn of 1998, for no apparent reason :-) Can't keep my fingers away, I guess.
e-mail: haywire@fatalunity.com
During development of Zdu the following music was listened to (in alphabetical order):And, mind you, these are no crap mp3, it's the real deal... well, CD anyway.
- Anthrax: Attack of the killer B's
- Anthrax: The threat is real, Volume 8
- Enya: The celts
- Enya: The Memory Of Trees
- Helloween: Better Than Raw
- Meshuggah: Contradictions Collapse & None
- Meshuggah: Destroy Erase Improve
- Meshuggah: Chaosphere
- Pantera: The great southern trendkill
- Pantera: Vulgar display of power
- Rammstein: Sehnsucht
- Rage Against the Machine: Evil Empire
- Skunk Anansie: Post orgasmic chill
- S.O.D.: Bigger than the devil
- Testament: Low
- Testament: Demonic
- Testament: The Gathering
- Tracy Bonham: The burdens of being upright
- ZZ-Top: The very best of
Some special yahoos* goes out to the following:*) no relations to Yahoo.com.
- Data Ductus AB: Employer
- Andreas Wiklund: Author of the crack-whiz string matching algorithm used by Zdu, feature suggestions, and RL-tester.
DON'T PANIC
WOW! You read all the way down here! If you meet someone
else who managed to
do the same, you better start a club or something
because you are some rare
people! :-)