PCP.ENV(5)
π pcp.env β the PCP vibe-setting script π
okay so this is PCP.ENV(5), from the File Formats Manual section, and it's literally the little script that gets Performance Co-Pilot's run-time environment variables all set up and cozy. bestie, it's giving backstage pass energy β¨
π NAME π
pcp.env β script to set Performance Co-Pilot run-time environment variables
πΈ SYNOPSIS πΈ
/etc/pcp.env
β¨ DESCRIPTION β¨
So the pcp.env script gets sourced by assorted Performance Co-Pilot (PCP) scripts and utilities to define the PCP operating environment variables. That's its whole job, and it eats every time. π
The conjugate for executable programs that use the PCP libraries is the pmGetConfig(3) function β iykyk, that's the C-side twin. π«Ά
Typical usage of pcp.env in a script is as follows:
#! /bin/sh
# source the PCP environment variables
. /etc/pcp.env
rest of script ...
The full syntax and semantics of the pcp.conf file and the pmGetConfig function are described in their respective reference pages β go read those if you want the deep lore π
If the file $HOME/.pcp/pcp.conf exists then this will be processed after the system-wide pcp.conf file. This provides a mechanism to selectively modify or augment the environment settings for PCP scripts, which maybe useful if the scripts are run with sudo(1) β because sudo(1) cleans the environment of important settings that are required to ensure the correct execution of the PCP scripts, e.g. $PATH or $PERL5LIB. not sudo being the messy one that wipes your whole setup π no cap, your home config is the comeback.
π ENVIRONMENT π
PCP_CONFβ specifies an alternative path to thepcp.conffile. main character override behavior, fr fr π
π SEE ALSO π
PCPIntro(1), sudo(1), PCPIntro(3), PMAPI(3), pmGetConfig(3) and pcp.conf(5).
quick vibe check bestie: this page comes from Performance Co-Pilot, thePCPcollection, pagePCP.ENV(5)β that's the source and version tag, slay. π
mwah, that's the whole page, you ate it, periodt ππ¦πΈ
π¦ where this page comes from
- arch rolling: pcp 7.2.2-2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-3.0
- centos-stream 10: pcp-doc 7.1.5-6.el10 Β· GPL-2.0-or-later AND CC-BY-3.0
- centos-stream 9: pcp-doc 6.3.7-14.el9 Β· GPL-2.0-or-later AND CC-BY-3.0
- debian trixie: pcp 6.3.8-1
- fedora 43: pcp-doc 7.0.1-1.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.2.1-1.fc43
- fedora 43: pcp-doc 7.2.2-1.fc43
- fedora 43: pcp-doc 7.2.2-2.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.1.0-6.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.2.1-1.fc44
- fedora 44: pcp-doc 7.2.2-1.fc44
- fedora 44: pcp-doc 7.2.2-2.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- ubuntu questing: pcp 6.3.8-1
- ubuntu resolute: pcp 7.1.1-1
- ubuntu stonking: pcp 7.2.1-2build1
- Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms