Manual Reference Pages  - sdu (1)

NAME

sdu - Summarizes disk usage

CONTENTS

Synopsis
Description
Options

SYNOPSIS

sdu  [-a]  [-b]  [-c]  [-D]  [-h]  [--help]  [-k]  [-l]  [-L]  [-m]  [-s]  [-S]  [--version]  [-x]  [file ...]

DESCRIPTION

This man page describes the GNU version of the du(1) command as enhanced by Sun Microsystems for the Sun StorEdge  SAM-FS file system. The sdu command displays the amount of disk space used by each file argument. If file is a directory, the command returns disk space information for each subdirectory of file. If file is a removable media file, the command returns 0 for the size of that file.

By default, the space is returned in 1K blocks, but if the POSIXLY_CORRECT environment variable is set,  512-byte blocks are reported. The sdu command displays actual disk blocks for online Sun StorEdge  SAM-FS files. It also displays an estimate of disk blocks (based on file size) for offline Sun StorEdge  SAM-FS files. To get actual disk block usage for both online and offline files, use the du(1) command.

OPTIONS

This command accepts the following options:
-a Displays counts for all files, not just directories. Equivalent to specifying --all.
-b Displays sizes in bytes. Equivalent to specifying --bytes.
-c Writes a grand total of all of the arguments after all arguments have been processed. This can be used to determine the disk usage of a directory with some files excluded. Equivalent to specifying --total.
-D Dereferences symbolic links that are command line arguments. Does not affect other symbolic links. This is helpful for determining the disk usage of directories like /usr/tmp if they are symbolic links. Equivalent to specifying  --dereference-args.
-h Displays sizes in  human-readable format. For example, 1K, 234M, 2G. Equivalent to specifying  --human-readable.
--help Writes a usage message to standard output and exits successfully.
-k Displays sizes in kilobytes. This overrides the environment variable POSIXLY_CORRECT. Equivalent to specifying --kilobytes.
-l Counts the size of all files, even if they have appeared already in another hard link. Equivalent to specifying --count-links.
-L Dereferences symbolic links. That is, the command shows the disk space used by the file or directory that the link points to instead of the space used by the link. Equivalent to specifying --dereference.
-m Uses 1024-kilobyte blocks, not 512, regardless of the POSIXLY_CORRECT environment variable setting. Equivalent to specifying --megabytes.
-s Displays only a total for each argument. Equivalent to specifying --summarize.
-S Counts the size of each directory separately, not including the sizes of subdirectories. Equivalent to specifying  --separate-dirs.
--version Displays version information on standard output then exits successfully.
-x Skips directories that are on different file systems from the one that the file being processed is on. Equivalent to specifying  --one-file-system.
file Specifies the file or the path to the file being analyzed. The size is written. If no file is specified, the current directory is used. If more than one file is specified, separate each with a space character.


SunOS 5.10 sdu (1) 8 Jul 2002
Generated by manServer 1.07 from sdu.1 using man macros.