Windows does not have a built-in program to help you determine your computer storage that is currently in use. Checking disk usage using duf is now a thing for many people nowadays. Duf is tool used to check the disk usage on Windows, it comes in handy as it is user friendly, and has the ability to display colorful results. Moreover, this utility is free, able to adjust depending on your terminal’s width, hence all the data is shown well, among many other advantages.

Checking Disk Usage using duf

Below is a step by step process that will guide you into checking your disk usage on Windows using duf. So, lets delve and learn more together. There are two ways you can use to install duf, using scoop and using Binary. In this process, we shall use binary as follows;

Step 1. Download, Extract and Install the .Zip File

Head over to github and under the installation process of duf, tap on binaries. Once you open it, there will be those for Windows, Linux, FreeBSD and MacOS. Find the one for Windows and click on it to download the .zip file. Just as shown;

  • Then, download the Windows .zip file by tapping on the file and also ensure that it is the latest release;
  • Once you have downloaded the above .zip file, extract it by right clicking on it then selecting extract all;

Step 2. Run Command to use duf

To use duf, open command prompt by typing cmd on your Windows search box then put in the following command.

  • To start duf, use;
duf
  • To get everything listed by duf, use;
duf --all
  • There are two recognized theme colors by duf (dark & light), to change the theme colour, use; For light,
duf --theme light

For the dark theme, use;

duf --theme dark
  • If you want to get the JSON output from duf, use;
duf --json

Below is how a JSON output looks like;


C:\Users\Valentine\Downloads\duf_0.6.0_Windows_x86_64>duf --json
[
 {
  "device": "\\\\?\\Volume{2c4782b3-d67a-4bab-b9a0-b5b5a2de60ab}\\",
  "device_type": "local",
  "mount_point": "C:\\",
  "fs_type": "NTFS",
  "type": "NTFS",
  "opts": "",
  "total": 224008335360,
  "free": 188773720064,
  "used": 35234615296,
  "inodes": 0,
  "inodes_free": 0,
  "inodes_used": 0,
  "blocks": 54689535,
  "block_size": 4096
 },
 {
  "device": "ValVital",
  "device_type": "local",
  "mount_point": "D:\\",
  "fs_type": "NTFS",
  "type": "NTFS",
  "opts": "",
  "total": 31456227328,
  "free": 31385206784,
  "used": 71020544,
  "inodes": 0,
  "inodes_free": 0,
  "inodes_used": 0,
  "blocks": 7679743,
  "block_size": 4096
 }
]
  • To show or hide some specific output columns, indicate what you want shown, i.e mountpoint, size, usage;
duf --output mountpoint,size,usage

C:\Users\Valentine\Downloads\duf_0.6.0_Windows_x86_64>duf --output mountpoint,size,usage
╭─────────────────────────────────────────────────────╮
│ 2 local devices                                     │
├────────────┬────────┬───────────────────────────────┤
│ MOUNTED ON │   SIZE │              USE%             │
├────────────┼────────┼───────────────────────────────┤
│ C:\        │ 208.6G │ [###.................]  15.7% │
│ D:\        │  29.3G │ [....................]   0.2% │
╰────────────┴────────┴───────────────────────────────╯

Below is a sample of what duf can display, depending on how you want it displayed, what you want displayed among many other things you can do;

On this chart, there are some well illustrated functions, on the commands that you can use to manipulate duf as you wish.

C:\Users\Valentine\Downloads\duf_0.6.0_Windows_x86_64>duf
╭───────────────────────────────────────────────────────────────────────────────────────────────────╮
│ 2 local devices                                                                                   │
├────────────┬────────┬───────┬────────┬───────────────────────────────┬──────┬─────────────────────┤
│ MOUNTED ON │   SIZE │  USED │  AVAIL │              USE%             │ TYPE │ FILESYSTEM          │
├────────────┼────────┼───────┼────────┼───────────────────────────────┼──────┼─────────────────────┤
│ C:\        │ 208.6G │ 32.8G │ 175.8G │ [###.................]  15.7% │ NTFS │ \\?\Volume{2c4782b3 │
│            │        │       │        │                               │      │ -d67a-4bab-b9a0-b5b │
│            │        │       │        │                               │      │ 5a2de60ab}\         │
│ D:\        │  29.3G │ 67.7M │  29.2G │ [....................]   0.2% │ NTFS │ ValVital            │
╰────────────┴────────┴───────┴────────┴───────────────────────────────┴──────┴─────────────────────╯

C:\Users\Valentine\Downloads\duf_0.6.0_Windows_x86_64>duf --output mountpoint,size,usage
╭─────────────────────────────────────────────────────╮
│ 2 local devices                                     │
├────────────┬────────┬───────────────────────────────┤
│ MOUNTED ON │   SIZE │              USE%             │
├────────────┼────────┼───────────────────────────────┤
│ C:\        │ 208.6G │ [###.................]  15.7% │
│ D:\        │  29.3G │ [....................]   0.2% │
╰────────────┴────────┴───────────────────────────────╯

C:\Users\Valentine\Downloads\duf_0.6.0_Windows_x86_64>duf --all
╭───────────────────────────────────────────────────────────────────────────────────────────────────╮
│ 2 local devices                                                                                   │
├────────────┬────────┬───────┬────────┬───────────────────────────────┬──────┬─────────────────────┤
│ MOUNTED ON │   SIZE │  USED │  AVAIL │              USE%             │ TYPE │ FILESYSTEM          │
├────────────┼────────┼───────┼────────┼───────────────────────────────┼──────┼─────────────────────┤
│ C:\        │ 208.6G │ 32.8G │ 175.8G │ [###.................]  15.7% │ NTFS │ \\?\Volume{2c4782b3 │
│            │        │       │        │                               │      │ -d67a-4bab-b9a0-b5b │
│            │        │       │        │                               │      │ 5a2de60ab}\         │
│ D:\        │  29.3G │ 67.7M │  29.2G │ [....................]   0.2% │ NTFS │ ValVital            │
╰────────────┴────────┴───────┴────────┴───────────────────────────────┴──────┴─────────────────────╯

C:\Users\Valentine\Downloads\duf_0.6.0_Windows_x86_64>duf --local,network,fuse,special,loops,binds
flag provided but not defined: -local,network,fuse,special,loops,binds
Usage of duf:
  -all
        include pseudo, duplicate, inaccessible file systems
  -hide string
        hide specific devices, separated with commas:
        local, network, fuse, special, loops, binds
  -hide-fs string
        hide specific filesystems, separated with commas
  -inodes
        list inode information instead of block usage
  -json
        output all devices in JSON format
  -only string
        show only specific devices, separated with commas:
        local, network, fuse, special, loops, binds
  -only-fs string
        only specific filesystems, separated with commas
  -output string
        output fields: mountpoint, size, used, avail, usage, inodes, inodes_used, inodes_avail, inodes_usage, type, filesystem
  -sort string
        sort output by: mountpoint, size, used, avail, usage, inodes, inodes_used, inodes_avail, inodes_usage, type, filesystem (default "mountpoint")
  -style string
        style: unicode, ascii (default "unicode")
  -theme string
        color themes: dark, light (default "dark")
  -version
        display version
  -warnings
        output all warnings to STDERR
  -width uint
        max output width

C:\Users\Valentine\Downloads\duf_0.6.0_Windows_x86_64>duf --theme dark
╭───────────────────────────────────────────────────────────────────────────────────────────────────╮
│ 2 local devices                                                                                   │
├────────────┬────────┬───────┬────────┬───────────────────────────────┬──────┬─────────────────────┤
│ MOUNTED ON │   SIZE │  USED │  AVAIL │              USE%             │ TYPE │ FILESYSTEM          │
├────────────┼────────┼───────┼────────┼───────────────────────────────┼──────┼─────────────────────┤
│ C:\        │ 208.6G │ 32.8G │ 175.8G │ [###.................]  15.7% │ NTFS │ \\?\Volume{2c4782b3 │
│            │        │       │        │                               │      │ -d67a-4bab-b9a0-b5b │
│            │        │       │        │                               │      │ 5a2de60ab}\         │
│ D:\        │  29.3G │ 67.7M │  29.2G │ [....................]   0.2% │ NTFS │ ValVital            │
╰────────────┴────────┴───────┴────────┴───────────────────────────────┴──────┴─────────────────────╯

In Summary

As you can see above, the installation of the duf utility is bot complex neither is the usage. You just have to know what command do what and you are good to go. Now you can use this, to check your disk usage at any time you want.

Other Posts;

LEAVE A REPLY

Please enter your comment!
Please enter your name here