Estimate file space usage.

Synopsis

du [OPTION]... [FILE]...

Description

Summarize disk usage of files and directories. Runs in the just-bash WASM shell inside SLICC.

Options

-h, --human-readable Print sizes in human-readable format.

-s, --summarize Display only a total for each argument.

-a, --all Show counts for all files, not just directories.

--max-depth=N Print total for a directory only if N or fewer levels below the command line argument.

Examples

$ du -sh *

Show summary size of each file/directory in human-readable format.

$ du -h --max-depth=1

Show sizes one level deep.

Notes

Operates on the SLICC virtual filesystem (LightningFS/IndexedDB).

See Also

df, stat, ls