shithub: riscv

Download patch

ref: 45f55eb644343da015d8b93d4f7d68bbf17ada9d
parent: f976fbe8c7ef291831752ceb65d4609d4dd7b39f
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Thu Jul 5 16:39:34 EDT 2012

add pstree to ps(1) manpage.

--- a/sys/man/1/ps
+++ b/sys/man/1/ps
@@ -1,6 +1,6 @@
 .TH PS 1
 .SH NAME
-ps, psu \- process status
+ps, psu, pstree \- process status
 .SH SYNOPSIS
 .B ps
 [
@@ -14,6 +14,8 @@
 [
 .I user
 ]
+.PP
+.B pstree
 .SH DESCRIPTION
 .I Ps
 prints information about processes.
@@ -99,6 +101,9 @@
 flag causes
 .I ps
 to print the arguments for the process.  Newlines in arguments will be translated to spaces for display.
+.PP
+.I Pstree
+shows the processes as a tree.
 .SH FILES
 .B /proc/*/status
 .SH SOURCE
@@ -105,6 +110,8 @@
 .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),
--