JSI Tip 9331. Du.exe freeware reports disk space usage for the directory you specify.

Jerold Schulman

May 5, 2005

1 Min Read
ITPro Today logo in a gray background | ITPro Today


Download Du.zip. Du.exe is a command-line tool that reports the disk space usage of a directory you specify, and by default, the sub-directories.

When you type Du /?, you receive:

Du v1.2 - report directory disk usageCopyright (C) 2005 Mark RussinovichSysinternals - www.sysinternals.comusage: du  [-n [-q]    -l     Specify subdirectory depth of information (default is all levels).   -n     Do not recurse.   -q     Quiet (no banner).   -v     Show size (in KB) of intermediate directories.

Examples:

When I typed du c:zipnew, I received:

Du v1.2 - report directory disk usageCopyright (C) 2005 Mark RussinovichSysinternals - www.sysinternals.comFiles:        174Directories:  8Size:         85,801,729 bytesSize on disk: 85,801,729 bytes

When I typed du -v c:zipnew, I received:

Du v1.2 - report directory disk usageCopyright (C) 2005 Mark RussinovichSysinternals - www.sysinternals.com         0  c:zipnewFAX    36,393  c:zipnewJSI    10,249  c:zipnewOpalis       466  c:zipnewQuotations    . . . . . . . . . . . . . .     1,802  c:zipnewWinternals    83,790  c:zipnewTotals:Files:        174Directories:  8Size:         85,801,729 bytesSize on disk: 85,801,729 bytes



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like