summaryrefslogtreecommitdiff
path: root/man5
diff options
context:
space:
mode:
authorKrzysztof Konopko <krzysztof.konopko@gmail.com>2013-03-28 10:19:16 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2013-04-01 14:53:45 +0200
commit1391278030f64c7dd96f4535c1056321f690e094 (patch)
treee52856c341f0c18e7a2c0caaf43f41e77d91b10e /man5
parentb6bc918e7a808d71470142085262789e34f60499 (diff)
proc.5: Simplify the example of printing out environ
The binutils package contains a very handy utility to print out null-byte delimited strings from a file. This can replace a rather complex expression with cat(1) provided as an example for printing out /proc/[pid]/environ. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man5')
-rw-r--r--man5/proc.52
1 files changed, 1 insertions, 1 deletions
diff --git a/man5/proc.5 b/man5/proc.5
index b7cda376..725873eb 100644
--- a/man5/proc.5
+++ b/man5/proc.5
@@ -182,7 +182,7 @@ Thus, to print out the environment of process 1, you would do:
.nf
.ft CW
-.RB "$" " (cat /proc/1/environ; echo) | tr \(aq\e000\(aq \(aq\en\(aq"
+.RB "$" " strings /proc/1/environ"
.fi
.ft P
.in