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

P4 CLI Documentation | 2025.2

# TMP, TEMP

The directory to which P4 Server applications and services write temporary files.

## Usage notes

Used by Client? | Used by Server? | Command-Line Alternative | Can be set in P4CONFIG file?
--- | --- | --- | ---
Yes | Yes | None | No

## Value if not explicitly set

Operating System | Value
--- | ---
UNIX | `/tmp`
All Others | For P4 Server applications: the current working directory. On P4 Server: `P4ROOT`

## Notes

If `TEMP` is set, `TEMP` is used. Otherwise, if `TMP` is set, this is used. If neither `TEMP` nor `TMP` are set, temporary files are written in the directories described in the table above.

When using triggers on Windows, `%formfile%` and other variables that use a temp directory should use the `TMP` and `TEMP` system variables in Windows, not the user’s `TEMP` variables.

Your search for returned results