p4 labels lists all the labels known to the Perforce server in the form:
Use the -t option to display the time of the last update to the label.
To see a list of static labels that tag specific files, specify a file pattern, with an optional revision range. (Because automatic labels refer to all files in the label view at a specified revision range, automatic labels are not shown when you use
p4 labels with a file pattern.)
Use the -m max option to limit the output to the first
max labels.
Use the -e namefilter option to limit the output to labels whose name matches the
namefilter pattern.
Use the -u user option to limit the output to labels owned by the named user.