Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 CLI Documentation | 2025.2

# p4 diskspace

Display disk space information on the server.

p4 df is an alias for `p4 diskspace`.

## Syntax

    p4 [g-opts] diskspace [P4ROOT | P4JOURNAL | P4LOG | TEMP | journalPrefix | depot]

Syntax and naming conventions

## Description

Shows summary information about the current availability of disk space on the server.

The output of `p4 diskspace` is in the form:

    name  (type type ) : xxx  GB free, yyy  GB used, zzz  GB total (ff  % full)

Where name can be either `P4ROOT`, `P4JOURNAL`, `P4LOG`, `TEMP`, a prefix to a non-default P4 Server journal file location, or the name of a P4 Server depot. The filesystem type is that reported by the operating system.

If no arguments are specified, disk space information is displayed for all objects.

By default, P4 Server rejects commands when free space on the filesystems housing the `P4ROOT`, `P4JOURNAL`, `P4LOG`, or `TEMP` falls below 10 megabytes. To change this behavior, set the `filesys.P4ROOT.min` (and corresponding) configurables to your desired limits.

If the user account that runs the P4 Server is subject to disk quotas, the `filesys.*.min` configurables reflect those quotas, regardless of how much physical space actually remains on the filesystem(s) in question.

Server releases prior to 16.1 included reserved space in the number displayed for used space in the Size column for Unix filesystems. This has been changed so that the size given now excludes reserved space.

## Options

Option | Description
--- | ---
depot | Report disk space available for filesystem holding the specified depot.
journalPrefix | Report disk space available for filesystem holding a non-standard journal location.
`P4JOURNAL` | Report disk space available for filesystem holding `P4JOURNAL`.
`P4LOG` | Report disk space available for filesystem holding `P4LOG` (server log).
`P4ROOT` | Report disk space available for filesystem holding `P4ROOT`.
`TEMP` | Report disk space available for filesystem holding temporary files. If not defined, uses `P4ROOT` on Windows, and `/tmp` on Unix.
`g-opts` | See Global options.

## Usage notes

Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required | Command Alias
--- | --- | --- | ---
N/A | N/A | `super` available to an operator user | p4 df

## Related commands

To configure Perforce’s behavior when disk space is low | `p4 configure`

Your search for returned results