p4 where

Show where a particular file is located, as determined by the client view.

Syntax

p4 [g-opts] where [file ...]

Description

p4 where uses the client view and root (as set in p4 client) to print files' locations relative to the top of the depot, relative to the top of the client workspace, and relative to the top of the local OS directory tree. The command does not check to see if the file exists; it merely reports where the file would be located if it did exist.

For each file provided as a parameter, a set of mappings is output. Each set of mappings is composed of lines consisting of three parts: the first part is the filename expressed in depot syntax, the second part is the filename expressed in client syntax, and the third is the local OS path of the file.

Options

g-opts

See Global Options.

Usage Notes

Can File Arguments Use Revision Specifier? Can File Arguments Use Revision Range? Minimal Access Level Required

No

No

list

Examples

p4 where file.c

Show depot, client workspace, and local filesystem locations of file.c (or where file.c would appear if it existed in the depot.)

p4 where 100%25.txt

Use ASCII expansion of "%" character to locations for file 100%.txt.

ASCII expansion is supported for the following four special characters: @ (%40), # (%23), * (%2A), and % (%25).

Related Commands

To list the revisions of files as synced from the depot

p4 have