di 4.9 review

Download
by rbytes.net on

di Displays usage information on mounted filesystems

License: zlib/libpng License
File size: 68K
Developer: Brad Lanam
0 stars award from rbytes.net

di Displays usage information on mounted filesystems. Block values are reported in megabytes (1024k bytes) by default, but may be changed. If file is specified, the usage infor-mation for the partition on which file is located is printed.

Unless the -a flag is specified, certain mounted filesystems will not normally be displayed.

Filesystems that have a total block count of 0 will not be displayed.

Filesystems that have a mount option of 'ignore' set will not be displayed.

Filesystems that are automounted, and are duplicates of an existing filesystem are not displayed. (May not work on all systems).

mi Displays the mounted filesystem information.

Several switches may be specified to control the output of di and mi:

-A Print all fields (used for debugging). Mount points and special device names are printed at full width. The -a flag is set.

-a Prints all mounted devices (normally, those with 0 total blocks are not printed - e.g. /dev/proc, /dev/fd).

-b block-size
Change the base block size from 1024 (default) to the size specified. block-size may be one of: k - 1024 bytes, d - 1000 bytes, or a specific size.

-d display-size
Display the blocks in units specified by display-size. display-size may be one of: 512 - POSIX, k - kilobytes, m - megabytes, g - gigabytes, t - terabytes, P - petabytes, E - exabytes, Z - zettabytes, Y - yottabytes, h - Scaled alternative 1, H - Scaled alternative 2, or a specific value to use as the block size.

Block display sizes greater than 1024 bytes are displayed with a precision of one decimal place after the radix.

The Scaled alternatives scale the sizes displayed and appends a suffix (e.g. 48.0k, 3.4M).

With scaled alternative 1, sizes within a line may scale to different units.

Scaled alternative 2 scales all the sizes in each individual line to the same unit size (the largest needed).

-f format
Use the specified format string format. Format strings are described below.

-F include-fstype-list
An alias for -I. See below.

-g Display sizes in gigabytes. An alias for -dg.

-h Display partition sizes in scaled alternative 1 format.
An alias for -dh.

-H Display partition sizes in scaled alternative 2 format.
An alias for -dH.

-I include-fstype-list
Include only the file system types listed in include-fstyp-list. The list is a comma separated list of file system types. e.g. -I nfs,rfs

-i exclude-fstype-list
An alias for -x. See below.

-k Display sizes in Kbytes. An alias for -dk.

-l Display only local file systems. This option is not fully implemented for all systems as of version 1.17.

-m Display sizes in megabytes. An alias for -dm.

-n Do not print a header line above the list of file systems. Useful when parsing the output of di.

-P Display partition sizes in POSIX 512 byte format An alias for -d512.

-s sort-type
Use sort-type to sort the output. The output of di is normally sorted by name. The output may be left unsorted (-s n command line switch) i.e. as it appears in the mount table or may be sorted by the special device name (-s s command line switch). If the -s r command line switch is used, the sort order will be reversed. If file is specified on the command line, no sorting is done.

-t Print a totals line below the list of file systems. Memory filesystems (tmpfs, memfs) and read-only filesystems are not added to the totals.

-w block-width
Set the print width for block values. Default is eight.

-W inode-width
Set the print width for inode values. Default is seven.

-x exclude-fstype-list
Exclude the file system types listed in exclude-fstyp-list. The list is a comma separated list of file system types. e.g. -x nfs,rfs

-X level
Set the program's debugging level to debug-level.

What's New in This Release:
An uninitialized variable used for Solaris zones was fixed.

di 4.9 keywords