Forrest logo
back to the dua tool

dua:tldr:c149b

dua: Display apparent size instead of disk usage.
$ dua --apparent-size
try on your machine

The command dua --apparent-size is used to display the actual size of files and directories on a storage device, rather than their allocated size.

The dua command is a disk usage analyzer that helps to analyze and report the space used by files and directories on a file system.

The --apparent-size flag is an option that instructs dua to show the apparent size of files and directories. The apparent size is the actual space occupied by the data, rather than the allocated size. This means that it considers the actual size of files, even if they are sparse (contain large areas of zeros) or have been compressed.

When this command is executed, dua scans the file system and provides a summary of the space used by different files and directories. By using the --apparent-size option, it ensures that the reported sizes are accurate and reflect the actual space consumed by the files, rather than just their allocated size.

Note: This command assumes that the dua command-line tool is installed and available in the system's PATH.

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