SUMMARY: 'df -g' for GB--could this be possible?--alternatives

From: Joe Ledesma <joe_ledesma_at_hotmail.com>
Date: Fri, 22 Sep 2000 17:09:11 -0700

Since no 'df -g' for GB is available to help on systems with large file
systems, several respondents suggested building the GNU fileutils, which
provides a 'df -h' to display file system sizes in K, M, or G depending on
the size.

An except from GNU df(1):

--block-size=SIZE
use SIZE-byte blocks
-h, --human-readable
print sizes in human readable format (e.g., 1K 234M 2G)
-H, --si
likewise, but use powers of 1000 not 1024
 . .
-k, --kilobytes
like --block-size=1024
 . .
-m, --megabytes
like --block-size=1048576

-----------------

Sizes can be obtained for AdvFS file systems, not just UFS.

The GNU Fileutils are available on the Open Source Software Collection CD
(formerly the Freeware CD).

Several alternatives were suggested by Colin Walters from a documentation
group at Compaq:

* Dxsysinfo GUI gives file system usage information in MB.

* In SysMan station GUI you can use Display Currently Mounted File Systems
or Manage; however, you have to view the properties of each file system to
see its usage in MB.

* In SysMan you can also use Manage an AdvFS Domain; however, you likewise
have to choose a domain to see its usage in GB or MB.

* "If you want to determine the information for use in a script,
 you could probably use sysman_cli (the command line interface
 to the Sysman Menu. This feasture enables you to list attributes
 of the relevant file systems component. Example code in /usr/examples
 and I put a lot of examples in the sysman_cli.8 manpage."

-----------------

Two respondents from Compaq said they would submit a request to Engineering,
but such requests takes a long time.

One second thought, the -h option found in the GUN version is probably
better than separate options -m and -g (and -t is already taken for another
meaning.).

Joe Ledesma
Oracle DBA / SAP R/3 Basis / UNIX Admin
Sacramento, CA USA
Received on Sat Sep 23 2000 - 00:10:58 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:41 NZDT