du

Syntax

du [options] <FILENAME/DIRECTORY-NAME>...

Description

Shows estimated disk space used for each file or directory or both.

Command context

Service OS (SVOS>)

Parameters

[options]

Selects the options for the command.

-a

Show file sizes.

-L

Shows all symlinks.

-H

Shows symlinks on a command line.

-d, N

Shows limited output to directories (and files with -a) of depth less than N.

-c

Shows the total disk space usage of all files or directories or both.

-l

Shows the count sizes if hard linked.

-s

Shows only a total for each argument.

-x

Does not show directories on different file systems.

-h

Show sizes in human readable format (1K, 243M, and 2G).

-m

Show sizes in megabytes.

-k

Show sizes in kilobytes (default).

<FILENAME/DIRECTORY-NAME>

Specifies the file or directory or both for displaying a size estimate.

Authority

Administrators or local user group members with execution rights for this command.

Example

Estimating disk space for the /nos directory:

SVOS> du -ah /nos
196.4M  /nos/primary.swi
196.4M  /nos
SVOS>