Forrest logo
back to the dua tool

dua:tldr:b8892

dua: Count hard-linked files each time they are seen.
$ dua --count-hard-links
try on your machine

The command "dua --count-hard-links" is used to display the disk usage of files and directories, while also counting the number of hard links pointing to them. Hard links are multiple references to the same file, which can contribute to the overall disk usage.

When you run the command "dua --count-hard-links", it will scan the specified directories and calculate the total disk usage, taking into account both the size of files and the number of hard links pointing to them.

The output will include a detailed breakdown of disk usage, showing individual file and directory sizes, along with the number of hard links associated with each item. This can help understand the true disk usage and identify files that might be duplicated through hard links.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the dua tool