{
    "mode": "man",
    "parameter": "proc_pid_environ",
    "section": "5",
    "url": "https://www.chedong.com/phpMan.php/man/proc_pid_environ/5/json",
    "generated": "2026-10-07T13:41:28Z",
    "sections": {
        "NAME": {
            "content": "/proc/pid/environ - initial environment\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "/proc/pid/environ\nThis  file  contains the initial environment that was set when the currently executing\nprogram was started via execve(2).  The entries are separated by  null  bytes  ('\\0'),\nand  there  may  be  a  null  byte  at the end.  Thus, to print out the environment of\nprocess 1, you would do:\n\n$ cat /proc/1/environ | tr '\\000' '\\n'\n\nIf, after an execve(2), the process modifies its environment (e.g., by  calling  func‐\ntions such as putenv(3) or modifying the environ(7) variable directly), this file will\nnot reflect those changes.\n\nFurthermore,  a  process  may  change  the  memory  location that this file refers via\nprctl(2) operations such as PRSETMMENVSTART.\n\nPermission  to  access   this   file   is   governed   by   a   ptrace   access   mode\nPTRACEMODEREADFSCREDS check; see ptrace(2).\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "proc(5)\n\nLinux man-pages 6.7                          2023-08-15                          procpidenviron(5)",
            "subsections": []
        }
    },
    "summary": "/proc/pid/environ - initial environment",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "proc",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/proc/5/json"
        }
    ]
}