Training
Module
Maintain disks and volumes - Training
This module explores file system fragmentation and the tools that you can use to reduce fragmentation. Students will learn how Windows can compress files to take up less space on the hard disk.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
By Mark Russinovich
Published: November 04, 2020
] Download Du (1.62 MB)
Du (disk usage) reports the disk space usage for the directory you specify. By default it recurses directories to show the total size of a directory and its subdirectories.
Usage: du [-c[t]] [-l <levels> | -n | -v] [-u] [-q] <directory>
Parameter | Description |
---|---|
-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 is formatted as:
Path, CurrentFileCount, CurrentFileSize, FileCount, DirectoryCount, DirectorySize, DirectorySizeOnDisk
Download Du (1.62 MB)
Training
Module
Maintain disks and volumes - Training
This module explores file system fragmentation and the tools that you can use to reduce fragmentation. Students will learn how Windows can compress files to take up less space on the hard disk.