a DOS version is available in addition to the windows command-line version, compiled with DJGPP and Borland C++ 5.5.1.
07/18/2011 06:22 PM 4,848,532 du.zip %%%% HASHDEEP-1.0 %%%% size,md5,sha1,sha256,filename ## Invoked from: C:\prj\du ## C : \ > hashdeep -c md5,sha1,sha256 du.zip ## 4848532,0825f293eeda2274ffbe975f96a36d8e,4ddb65df18e04eee8c3bc83655d82ee38f22835d,77dd79e188d3309104435dde8706e9ff2506e556c0b07e91e1265880024b9469,C:\prj\du\du. zip
du is a command-line programs to be run under the CMD shell, or command.com. a disk usage report is displayed.
I fixed a bug where command-line arguments that contained spaces were not processed properly, even if ther arguments had double quotes around them. it is a globbing feature in mingw and djgpp which I just learned how to disable.
Author: Jim Michaels Abstract: zapdupes does just what the name says - deletes duplicate files based on the md5 checksum of the file. it does this to an entire directory tree. Creation Date: Jan 2, 2008 Current Date: Jan 4, 2008 The dos version is compiled with DJ Delorie's djgpp (gcc for DOS). It can be obtained at http://www.delorie.com/djgpp/ The windows version was compiled with Borland C++ 5.5 (free edition). It is available at http://dn.codegear.com/article/20633 http://www.codegear.com/downloads/free/cppbuilder Copyright 2009 Jim Michaels No copyright notice given, but here is one nonetheless: directory walk function Copyright 2000 Michael D. Ober, modified/fixed by Jim Michaels This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Mon 07/18/2011 18:09:53.28|C:\prj\du\du-1.5\win|>example Mon 07/18/2011 18:10:07.10|C:\prj\du\du-1.5\win|>32\du \prj\wipe \prj\du \prj\df \prj\diskgemoetry Please wait... Directories Separately: \prj\wipe 125.86MB(125869797) \prj\du 25.76MB(25768910) \prj\df 27.09MB(27093017) \prj\diskgemoetry 0.00B(0) Mon 07/18/2011 18:10:07.37|C:\prj\du\du-1.5\win|>32\du -iec \prj\wipe \prj\du \prj\df \prj\diskgemoetry Please wait... Directories Separately: \prj\wipe 120.03MiB(125869797) \prj\du 24.58MiB(25768910) \prj\df 25.85MiB(27093017) \prj\diskgemoetry 0.00B(0) Mon 07/18/2011 18:10:07.57|C:\prj\du\du-1.5\win|>32\du -alltogether \prj\wipe \prj\du \prj\df \prj\diskgemoetry Please wait... Directories All Together: \prj\wipe \prj\du \prj\df \prj\diskgemoetry 178.73MB(178731724) Mon 07/18/2011 18:10:07.81|C:\prj\du\du-1.5\win|>32\du -alltogether -iec \prj\wipe \prj\du \prj\df \prj\diskgemoetry Please wait... Directories All Together: \prj\wipe \prj\du \prj\df \prj\diskgemoetry 170.46MiB(178731724) Mon 07/18/2011 18:10:08.10|C:\prj\du\du-1.5\win|>32\du --version Version 1.5 Mon 07/18/2011 18:10:08.12|C:\prj\du\du-1.5\win|>
du - disk usage of directory in SI Units. usage: du [-[-]v[er[sion]]|/v[er[sion]]] [-[-]h[elp]|/h[elp]|-[-]?|/?] du [-[-]a[lltogether]|-[-]merge] [-[-]SI|/SI] [-[-]IEC|/IEC] [directory ...] All switches are case insensitive. -v or -version gives the version number and quits. -a or --alltogether or --merge processes all the arguments (directories specified) as 1 collection. Total includes all. -? or -h or -help or no arguments gives this help. -SI (the default) specifies SI units (K, M, G, T, P, E) in terms of powers of 1000. -IEC specifies IEC Computer Science? units (Microsoft style, Ki, Mi, Gi, Ti, Pi, Ei) in terms of powers of 1024. dir gives you file info, and you get plenty with it. example: dir/s du directory calculates the amount of space used by all the subdirectories and displays them each on its own line. a grand total will be at the bottom. . specifies the current directory you are in. .. specifies the parent directory of where you are at. example, separate: du f:\somedir . example, collect all as one: du -a f:\somedir . No copyright notice given, but here is one nonetheless: directory walk function Copyright 2000 Michael D. Ober, modified/fixed by Jim Michaels Program Copyright 2009 Jim Michaels, under GPL3 license.