{
    "mode": "man",
    "parameter": "proc_pid_comm",
    "section": "5",
    "url": "https://www.chedong.com/phpMan.php/man/proc_pid_comm/5/json",
    "generated": "2026-10-09T13:03:43Z",
    "sections": {
        "NAME": {
            "content": "/proc/pid/comm - command name\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "/proc/pid/comm (since Linux 2.6.33)\nThis  file  exposes the process's comm value—that is, the command name associated with\nthe process.  Different threads in the same process may have  different  comm  values,\naccessible  via  /proc/pid/task/tid/comm.  A thread may modify its comm value, or that\nof any of other thread in the same thread group (see the discussion of CLONETHREAD in\nclone(2)), by writing to  the  file  /proc/self/task/tid/comm.   Strings  longer  than\nTASKCOMMLEN (16) characters (including the terminating null byte) are silently trun‐\ncated.\n\nThis  file provides a superset of the prctl(2) PRSETNAME and PRGETNAME operations,\nand is employed by pthreadsetnamenp(3) when used to rename threads  other  than  the\ncaller.   The  value  in  this  file  is  used  for the %e specifier in /proc/sys/ker‐\nnel/corepattern; see core(5).\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "proc(5)\n\nLinux man-pages 6.7                          2023-08-15                             procpidcomm(5)",
            "subsections": []
        }
    },
    "summary": "/proc/pid/comm - command name",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "proc",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/proc/5/json"
        }
    ]
}