DU (SysInternals)

Report the disk space usage for a directory. By default DU will recurse to show the total size of a directory and its subdirectories.

Syntax
      DU [-c[t]] [-l levels | -n | -v] [-u] [-q] [Directory]

Options
   -c 	Print output as CSV. 
   -ct  Print output with tab delimiting.
   -l 	Specify subdirectory depth of information (default is all levels).
   -n 	Do not recurse.
   -v 	Show size (in KB) of intermediate directories.
   -u 	Count each instance of a hardlinked file.
   -q 	Quiet (no banner).

When installing du.exe just ensure it is placed somewhere in either the system PATH or in the current directory.

Examples

List the files in E:\work and subfolders in verbose mode:

C:\demo\> DU -v E:\work

“I think the main struggle for women in Hollywood and women in my position is to fight for true representation in the media and accurate representation of our many diverse qualities in stories” ~ Amber Heard, (Stylist Magazine 2011)

Related commands

AUDITPOL - Manage audit policies.
DIR - Display a list of files and folders.
DISKUSE - Display disk usage.
DirQuota - Create and manage quotas (File Server Resource Manager).
DIRUSE - Display directory sizes/usage (2000 Resource Kit).
FSUTIL - File and Volume utilities.
Equivalent PowerShell: DirUse Script to list directory sizes.
Equivalent bash command (Linux): quotacheck - Scan a file system for disk usage.


 
Copyright © 1999-2024 SS64.com
Some rights reserved