aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2018-06-02 12:36:23 -0500
committerRob Landley <rob@landley.net>2018-06-02 12:36:23 -0500
commit1e90addea792297259803028911ca88462e97732 (patch)
treee4c38144afcb8067e7f371db85dcf4f21d12d444
parent9448c33944651c1644ffbd0f52cf9d43cae19599 (diff)
downloadtoybox-1e90addea792297259803028911ca88462e97732.tar.gz
Convert more ps help text to two columns.
-rw-r--r--toys/posix/ps.c42
1 files changed, 17 insertions, 25 deletions
diff --git a/toys/posix/ps.c b/toys/posix/ps.c
index c5d487f5..deab730b 100644
--- a/toys/posix/ps.c
+++ b/toys/posix/ps.c
@@ -61,36 +61,28 @@ config PS
List processes.
- Which processes to show (selections may be comma separated lists):
-
- -A All processes
- -a Processes with terminals that aren't session leaders
- -d All processes that aren't session leaders
- -e Same as -A
- -g Belonging to GROUPs
- -G Belonging to real GROUPs (before sgid)
- -p PIDs (--pid)
- -P Parent PIDs (--ppid)
- -s In session IDs
- -t Attached to selected TTYs
- -T Show threads
- -u Owned by USERs
- -U Owned by real USERs (before suid)
+ Which processes to show (-gGuUpPt selections may be comma separated lists):
+
+ -A all -a has terminal not session leader
+ -d All but session leaders -e synonym for -A
+ -g in GROUPs -G in real GROUPs (before sgid)
+ -p PIDs (--pid) -P Parent PIDs (--ppid)
+ -s In session IDs -t Attached to selected TTYs
+ -T Show threads also -u Owned by selected USERs
+ -U real USERs (before suid)
Output modifiers:
- -k Sort FIELDs in +increasing or -decreasting order (--sort)
- -M Measure field widths (expanding as necessary)
- -n Show numeric USER and GROUP
- -w Wide output (don't truncate fields)
+ -k Sort FIELDs (-FIELD to reverse) -M Measure/pad future field widths
+ -n Show numeric USER and GROUP -w Wide output (don't truncate fields)
Which FIELDs to show. (Default = -o PID,TTY,TIME,CMD)
- -f Full listing (-o USER:12=UID,PID,PPID,C,STIME,TTY,TIME,ARGS=CMD)
- -l Long listing (-o F,S,UID,PID,PPID,C,PRI,NI,ADDR,SZ,WCHAN,TTY,TIME,CMD)
- -o Output FIELDs instead of defaults, each with optional :size and =title
- -O Add FIELDS to defaults
- -Z Include LABEL
+ -f Full listing (-o USER:12=UID,PID,PPID,C,STIME,TTY,TIME,ARGS=CMD)
+ -l Long listing (-o F,S,UID,PID,PPID,C,PRI,NI,ADDR,SZ,WCHAN,TTY,TIME,CMD)
+ -o Output FIELDs instead of defaults, each with optional :size and =title
+ -O Add FIELDS to defaults
+ -Z Include LABEL
Command line -o fields:
@@ -126,7 +118,7 @@ config PS
TIME CPU time consumed TTY Controlling terminal
UID User id USER User name
VSZ Virtual memory size (1k units) %VSZ VSZ as % of physical memory
- WCHAN What are we waiting in kernel for
+ WCHAN Wait location in kernel
config TOP
bool "top"