# proc_pid_comm - man(5) - [phpMan]

[_proc_pid_comm_(5)](https://www.chedong.com/phpMan.php/man/procpidcomm/5/markdown)                         File Formats Manual                        [_proc_pid_comm_(5)](https://www.chedong.com/phpMan.php/man/procpidcomm/5/markdown)

## NAME
       /proc/pid/comm - command name

## DESCRIPTION
       _/proc/_pid_/comm_ (since Linux 2.6.33)
              This  file  exposes the process's _comm_ value—that is, the command name associated with
              the process.  Different threads in the same process may have  different  _comm_  values,
              accessible  via  _/proc/_pid_/task/_tid_/comm_.  A thread may modify its _comm_ value, or that
              of any of other thread in the same thread group (see the discussion of **CLONE_THREAD **in
              [**clone**(2)](https://www.chedong.com/phpMan.php/man/clone/2/markdown)), by writing to  the  file  _/proc/self/task/_tid_/comm_.   Strings  longer  than
              **TASK_COMM_LEN **(16) characters (including the terminating null byte) are silently trun‐
              cated.

              This  file provides a superset of the [**prctl**(2)](https://www.chedong.com/phpMan.php/man/prctl/2/markdown) **PR_SET_NAME **and **PR_GET_NAME **operations,
              and is employed by [**pthread_setname_np**(3)](https://www.chedong.com/phpMan.php/man/pthreadsetnamenp/3/markdown) when used to rename threads  other  than  the
              caller.   The  value  in  this  file  is  used  for the _%e_ specifier in _/proc/sys/ker‐_
              _nel/core_pattern_; see [**core**(5)](https://www.chedong.com/phpMan.php/man/core/5/markdown).

## SEE ALSO
       [**proc**(5)](https://www.chedong.com/phpMan.php/man/proc/5/markdown)

Linux man-pages 6.7                          2023-08-15                             [_proc_pid_comm_(5)](https://www.chedong.com/phpMan.php/man/procpidcomm/5/markdown)
