Hi Ævar, On 12/23/22 18:59, Ævar Arnfjörð Bjarmason wrote:
With "ps -A" the output uses the "stat.comm" field, but "ps a" will display the value in "cmdline". Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@xxxxxxxxx> --- man5/proc.5 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/man5/proc.5 b/man5/proc.5 index 65a4c38e3..115c8592e 100644 --- a/man5/proc.5 +++ b/man5/proc.5 @@ -2087,7 +2087,11 @@ The affected fields are indicated with the marking [PT]. The process ID. .TP (2) \fIcomm\fP \ %s -The filename of the executable, in parentheses. +The filename of the executable, in parentheses. Tools such as
Please use semantic newlines. See man-pages(7): Use semantic newlines In the source of a manual page, new sentences should be started on new lines, long sentences should be split into lines at clause breaks (com‐ mas, semicolons, colons, and so on), and long clauses should be split at phrase boundaries. This convention, sometimes known as "semantic newlines", makes it easier to see the effect of patches, which often operate at the level of individual sentences, clauses, or phrases. Cheers, Alex
+.BR ps (1) +may alternatively (or additionally) use +.IR /proc/ pid /cmdline. +.IP Strings longer than .B TASK_COMM_LEN (16) characters (including the terminating null byte) are silently truncated.
-- <http://www.alejandro-colomar.es/>
Attachment:
OpenPGP_signature
Description: OpenPGP digital signature