Disk Usage - Sysinternals | Microsoft Learn

Title: Disk Usage (Du) v1.62 — Summary Author: Mark Russinovich Published: November 04, 2020 Download: https://download.sysinternals.com/files/DU.zip

Summary

  • Du (Disk Usage) is a command-line tool that reports disk space usage for a specified directory.

  • By default it recursively computes and shows the total size of a directory including its subdirectories.

  • It can produce CSV output suitable for parsing and supports options to control recursion depth, CSV formatting, hardlink counting, and verbosity.

Usage

du usage
du [-c[t]] [-l <levels> | -n | -v] [-u] [-q] <directory>

Parameters

  • -c — Print output as CSV. Use -ct for tab delimiting.

  • -l — Specify subdirectory depth of information (default is 0 levels).

  • -n — Do not recurse.

  • -v — Show size (in KB) of intermediate directories.

  • -u — Count each instance of a hardlinked file.

  • -q — Quiet.

  • -nobanner — Do not display the startup banner and copyright message.

CSV output format

  • Path, CurrentFileCount, CurrentFileSize, FileCount, DirectoryCount, DirectorySize, DirectorySizeOnDisk

Additional resources

  • Training module: Maintain disks and volumes — https://learn.microsoft.com/en-us/training/modules/maintain-disks-volumes/?source=recommendations

Notes

  • Download link (1.62 MB): https://download.sysinternals.com/files/DU.zip

  • Last updated: 07/19/2022