du

    Summarize apparent bytes or inode counts in filesystem trees.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.1.0
    License
    Apache-2.0
    Last updated
    14 hours ago
    Downloads
    9

    #du

    Summarize apparent bytes or inode counts in filesystem trees.

    #Usage

    moonx cli/du -b archive.bin moonx cli/du --inodes -s src

    #Common options

    OptionDescription
    -b, --bytesShow apparent sizes in bytes.
    -A, --apparent-sizeMeasure logical bytes with the specified block size.
    -B VALUE, --block-size VALUERound output up to this positive byte unit.
    -k, --kilobytesUse units of 1024 bytes.
    -a, --allShow files as well as directories.
    -s, --summarizePrint one total for each operand.
    --inodesCount filesystem entries.
    -c, --totalPrint a final total.
    -l, --count-linksCount each operand, including hard-link aliases.
    -L, --dereferenceFollow symbolic links.
    -0, --nullTerminate each record with NUL.
    --helpShow help.
    --versionShow the version.

    #Notes

    Use -b for apparent bytes or --inodes for entry counts. Directories contribute zero apparent bytes. An unreadable directory is counted and reported before traversal continues. POSIX file identities suppress duplicate names. On Windows, multiple operands and directory trees require -l, and directory trees require physical traversal. Allocated blocks need additional metadata.

    Source Files