du

QNX SDP8.0Utilities ReferenceUtilities

Estimate disk space usage (POSIX, toybox)

Syntax:

du [-d n] [-abcHhKkLlmsx] [file...]

Runs on:

QNX OS

Options:

-a
Show all files, not just directories.
-b
Show size in apparent bytes (directory listing size, not space used).
-c
Show the cumulative total of used disk space.
-d n
Show the total for a directory (or file, with -a) if it is located at a level below the command line argument that is equal to or less than n.
-H
Follow symbolic links on the command line.
-h
Size in human readable format (e.g., 1K, 243M, 2G).
-K
Show size in 512 byte blocks (default).
-k
Show size in 1024-byte blocks.
-L
Follow all symbolic links.
-l
("el") Disable hard link filter.
-m
Show size in megabytes.
-s
Show only the total size of each argument.
-x
Don't leave this filesystem.
file
The pathname of a file to display the size of. If you don't specify any files, the current directory is used.

Description:

The du utility prints the amount of file space allocated to the specified files and directories. The size of the file space is given with the following options:

-b
Apparent bytes (directory listing size, not space used).
-h
Human readable output (e.g., 1KB, 243 MB, and 2 GB).
-k
1024-byte blocks.
-K
512-byte blocks (POSIX, default).
-m
Megabytes.

This utility is provided as part of the toybox package. For information on how to enable it, see toybox.

Contributing author:

Rob Landley and the toybox project (see https://landley.net/toybox/).

Page updated: