The command-line tool also includes a bunch of options to customize the report details. For example, you can use the /minFileSize option to find files equal to or larger than the size you specified. The /u and /t let you see the top files for a specific location and many other options. This guide will teach you the steps to get started using the DiskUsage command-line tool on Windows 11.

Check drive space usage with DiskUsage on Windows 11

To use the DiskUsage command to view the folder or drive usage on Windows 11, use these steps: Once you complete the steps, you will understand how space is used by files in a specific location or the entire drive. In the command, replace the PATH/TO/LOCATION for the location you want to analyze. For example, this command analyzes the contents of the Downloads folder:

In this example, the command generates a report of the disk space usage for the current location: For example, this command will look and list files larger than 15MB in the Downloads folder:

In the command, replace the PATH/TO/LOCATION for the location you want to analyze and NUMBER with the number of files you want to see. For example, this command lists the top ten files from the system32 folder:

In the command, replace the PATH/TO/LOCATION for the location you want to analyze and NUMBER with the number of folders you want to see. For example, this command lists the top ten folders from the system32 folder:

The DiskUsage tool offers many other options that you can use in many scenarios. You can use the DiskUsage /? command to list all the options available and their descriptions. If commands are not your thing, Windows 11 also include Storage Sense to view the drive space usage, or you can also use third-party tools, such as WinDirStat, to see what files are taking up the hard drive to take action accordingly. All content on this site is provided with no warranties, express or implied. Use any information at your own risk. Always backup of your device and files before making any changes. Privacy policy info.