{
    "mode": "man",
    "parameter": "proc_pid_cmdline",
    "section": "5",
    "url": "https://www.chedong.com/phpMan.php/man/proc_pid_cmdline/5/json",
    "generated": "2026-10-07T21:10:06Z",
    "sections": {
        "NAME": {
            "content": "/proc/pid/cmdline - command line\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "/proc/pid/cmdline\nThis  read-only  file  holds  the  complete  command  line for the process, unless the\nprocess is a zombie.  In the latter case, there is nothing in this file:  that  is,  a\nread on this file will return 0 characters.\n\nFor  processes which are still running, the command-line arguments appear in this file\nin the same layout as they do in process memory: If the process is well-behaved, it is\na set of strings separated by null bytes ('\\0'), with a further null  byte  after  the\nlast string.\n\nThis  is the common case, but processes have the freedom to override the memory region\nand break assumptions about the contents or format of the /proc/pid/cmdline file.\n\nIf, after an execve(2), the process modifies its argv strings, those changes will show\nup here.  This is not the same thing as modifying the argv array.\n\nFurthermore, a process may change the  memory  location  that  this  file  refers  via\nprctl(2) operations such as PRSETMMARGSTART.\n\nThink of this file as the command line that the process wants you to see.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "proc(5)\n\nLinux man-pages 6.7                          2023-08-15                          procpidcmdline(5)",
            "subsections": []
        }
    },
    "summary": "/proc/pid/cmdline - command line",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "proc",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/proc/5/json"
        }
    ]
}