HP OpenVMS Systems

ask the wizard
Content starts here

Tracking per-user disk usage?

» close window

The Question is:

How do I list disk space usage by disk, by user with a total for each
directory.  In UNIX I would use du -ak|sort -nr|more.  I'm new to VMS and
need this unix command translated,
Thank You

The Answer is :

  Various DIRECTORY commands appear to be the rough equivilent of the
  UNIX du command.  /[NO]HEADER /SIZE and /TOTAL are some of the more
  common qualifiers involved in this area.
  The disk quota mechanism is also available, and can be used to track
  disk usage without enforcing limits -- this capability in addition to
  its more obvious use in enforcing disk usage limits.  (To use the disk
  quota mechanism to track usage, set the quota limit for each user to
  a value equal to or larger than the capacity of the disk volume.)
  The OpenVMS Freeware DFU tool can also be used to generate reports on
  disk usage, as can the OpenVMS ANALYZE/DISK_STRUCTURE/USAGE command.
  The OpenVMS Wizard is not a particularly good resource for translating
  commands from other systems.  As unfamilar as the OpenVMS commands might
  look to you, the foreign commands can look equally unfamiliar to the
  OpenVMS Wizard.  In questions such as this, details on exactly what
  information you want or need to see in the report would be far more
  useful to the OpenVMS Wizard.
  The "|sort -nr|more" portion of the command has little to do with the
  core data-related portion of the question, as this latter portion
  controls the particular presentation of the data.

answer written or last revised on ( 26-JAN-2000 )

» close window