proc_pid_cmdline(5) — Linux manual page


proc_pid_cmdline(5)        File Formats Manual       proc_pid_cmdline(5)

NAME         top

       /proc/pid/cmdline - command line

DESCRIPTION         top

              This read-only file holds the complete command line for
              the process, unless the process is a zombie.  In the
              latter case, there is nothing in this file: that is, a
              read on this file will return 0 characters.

              For processes which are still running, the command-line
              arguments appear in this file in the same layout as they
              do in process memory: If the process is well-behaved, it
              is a set of strings separated by null bytes ('\0'), with a
              further null byte after the last string.

              This is the common case, but processes have the freedom to
              override the memory region and break assumptions about the
              contents or format of the /proc/pid/cmdline file.

              If, after an execve(2), the process modifies its argv
              strings, those changes will show up here.  This is not the
              same thing as modifying the argv array.

              Furthermore, a process may change the memory location that
              this file refers via prctl(2) operations such as

              Think of this file as the command line that the process
              wants you to see.

SEE ALSO         top


COLOPHON         top

       This page is part of the man-pages (Linux kernel and C library
       user-space interface documentation) project.  Information about
       the project can be found at 
       ⟨⟩.  If you have a bug report
       for this manual page, see
       This page was obtained from the tarball man-pages-6.9.1.tar.gz
       fetched from
       ⟨⟩ on
       2024-06-26.  If you discover any rendering problems in this HTML
       version of the page, or you believe there is a better or more up-
       to-date source for the page, or you have corrections or
       improvements to the information in this COLOPHON (which is not
       part of the original manual page), send a mail to

Linux man-pages 6.9.1          2024-06-15            proc_pid_cmdline(5)