]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/man/1/ps
acme(1): remove references to awd
[plan9front.git] / sys / man / 1 / ps
old mode 100755 (executable)
new mode 100644 (file)
index 3f3c962..13d2919
@@ -1,19 +1,21 @@
 .TH PS 1
 .SH NAME
-ps, psu \- process status
+ps, psu, pstree \- process status
 .SH SYNOPSIS
 .B ps
 [
-.B -apr
+.B -apnr
 ]
 .PP
 .B psu
 [
-.B -apr
+.B -apnr
 ]
 [
 .I user
 ]
+.PP
+.B pstree
 .SH DESCRIPTION
 .I Ps
 prints information about processes.
@@ -83,6 +85,12 @@ waiting for more of a critical
 .PD
 .PP
 The
+.B -n
+flag causes
+.I ps
+to print, after the process id, the note group to which the process belongs.
+.PP
+The
 .B -r
 flag causes
 .I ps
@@ -99,15 +107,26 @@ The
 flag causes
 .I ps
 to print the arguments for the process.  Newlines in arguments will be translated to spaces for display.
+.PP
+.I Pstree
+prints the processes as a tree in a two colum layout where
+the first colum being the process id and second column
+the program name and arguments indented and prefixed with
+line drawing runes to reflect the nesting in the hierarchy.
 .SH FILES
 .B /proc/*/status
 .SH SOURCE
 .B /sys/src/cmd/ps.c
 .br
 .B /rc/bin/psu
+.br
+.B /sys/src/cmd/pstree.c
 .SH "SEE ALSO"
 .IR acid (1),
 .IR db (1),
 .IR kill (1), 
 .IR ns (1),
 .IR proc (3)
+.SH HISTORY
+.I Pstree
+first appeared in 9front (June, 2011).