maux
Star on GitHub Buy me a coffee

Manual / du

du(1)

DU(1) General Commands Manual DU(1)

du - summarize disk usage

du [-sak] [name...]

Du gives the number of blocks contained in all files and (recursively) directories within each specified directory or file name. If name is missing, the current directory is used and names are reported relative to it: "./sub", then "." for the total. A trailing slash on a name is not doubled when entries are joined to it. The total for a volume (du /mnt/MAUX) counts its files, not the boot, directory and bitmap blocks the volume spends on itself; df(1) counts those as used.

Give only the total for each operand.
Generate an entry for each file as well as each directory.
Report units of 1024 bytes, rounding a half-unit upward.

Without these options, an entry is generated for each directory after its contents have been visited. The count is allocated ProDOS blocks, including file index blocks, not the byte length divided by 512.

/usr/man/DU this page

df(1), ls(1), licenses(1)

Exit status is 0 on success, 1 for traversal/access errors, 2 for usage errors.

Traversal uses bounded storage in one process bank. ProDOS has no hard links to coalesce.

October 7, 2026 maux