top: improve man doc Section 5e, FILTERING in a window
This commit involves very little content change and is more concerned with better formatting for readability. Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
2872d24362
commit
d7f3a80e18
97
top/top.1
97
top/top.1
@ -1743,21 +1743,21 @@ a mistake, command recall will be your friend.
|
|||||||
Remember the Up/Down \*(KAs or their aliases when prompted for input.
|
Remember the Up/Down \*(KAs or their aliases when prompted for input.
|
||||||
|
|
||||||
.B Filter Basics
|
.B Filter Basics
|
||||||
.IP " . " 5
|
.IP " . " 6
|
||||||
field names are case sensitive and spelled as in the header
|
field names are case sensitive and spelled as in the header
|
||||||
.IP " . " 5
|
.IP " . " 6
|
||||||
selection values need not comprise the full displayed field
|
selection values need not comprise the full displayed field
|
||||||
.IP " . " 5
|
.IP " . " 6
|
||||||
a selection is either case insensitive or sensitive to case
|
a selection is either case insensitive or sensitive to case
|
||||||
.IP " . " 5
|
.IP " . " 6
|
||||||
the default is inclusion, prepending '!' denotes exclusions
|
the default is inclusion, prepending '!' denotes exclusions
|
||||||
.IP " . " 5
|
.IP " . " 6
|
||||||
multiple selection criteria can be applied to a \*(TW
|
multiple selection criteria can be applied to a \*(TW
|
||||||
.IP " . " 5
|
.IP " . " 6
|
||||||
inclusion and exclusion criteria can be used simultaneously
|
inclusion and exclusion criteria can be used simultaneously
|
||||||
.IP " . " 5
|
.IP " . " 6
|
||||||
the 1 equality and 2 relational filters can be freely mixed
|
the 1 equality and 2 relational filters can be freely mixed
|
||||||
.IP " . " 5
|
.IP " . " 6
|
||||||
separate unique filters are maintained for each \*(TW
|
separate unique filters are maintained for each \*(TW
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
@ -1767,32 +1767,35 @@ Later, should a filtered field become visible, the selection criteria will
|
|||||||
then be applied.
|
then be applied.
|
||||||
|
|
||||||
.B Keyboard Summary
|
.B Keyboard Summary
|
||||||
.TP 5
|
.TP 6
|
||||||
\ '\fBo\fR' :\fIOther-Filter\fR (lower case)
|
\ \ '\fBo\fR' :\fIOther-Filter\fR (lower case)
|
||||||
You will be prompted to establish a filter that \fBignores case\fR when
|
You will be prompted to establish a filter that \fBignores case\fR when
|
||||||
matching.
|
matching.
|
||||||
|
|
||||||
.TP 5
|
.TP 6
|
||||||
\ '\fBO\fR' :\fIOther-Filter\fR (upper case)
|
\ \ '\fBO\fR' :\fIOther-Filter\fR (upper case)
|
||||||
You will be prompted to establish a \fBcase sensitive\fR filter.
|
You will be prompted to establish a \fBcase sensitive\fR filter.
|
||||||
|
|
||||||
.TP 5
|
.TP 6
|
||||||
\ \fB^O\fR\ \ :\fIShow-Active-Filters\fR (Ctrl key + 'o')
|
\ \ \fB^O\fR\ \ :\fIShow-Active-Filters\fR (Ctrl key + 'o')
|
||||||
This can serve as a reminder of which filters are active in the \*(CW.
|
This can serve as a reminder of which filters are active in the \*(CW.
|
||||||
A summary will be shown on the message line until you press the <Enter> key.
|
A summary will be shown on the message line until you press the <Enter> key.
|
||||||
|
|
||||||
.TP 5
|
.TP 6
|
||||||
\ '\fB=\fR' :\fIReset-Filtering\fR in current window
|
\ \ '\fB=\fR' :\fIReset-Filtering\fR in current window
|
||||||
This clears all of your selection criteria in the \*(CW.
|
This clears all of your selection criteria in the \*(CW.
|
||||||
It also has additional impact so please \*(Xt 4a. GLOBAL Commands.
|
It also has additional impact so please \*(Xt 4a. GLOBAL Commands.
|
||||||
|
|
||||||
.TP 5
|
.TP 6
|
||||||
\ '\fB+\fR' :\fIReset-Filtering\fR in all windows
|
\ \ '\fB+\fR' :\fIReset-Filtering\fR in all windows
|
||||||
This clears the selection criteria in all windows, assuming you are in \*(AM.
|
This clears the selection criteria in all windows, assuming you are in \*(AM.
|
||||||
As with the '=' \*(CI, it too has additional consequences so you might wish to
|
As with the '=' \*(CI, it too has additional consequences so you might wish to
|
||||||
\*(Xt 5b. COMMANDS for Windows.
|
\*(Xt 5b. COMMANDS for Windows.
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
|
.B Input Requirements
|
||||||
|
.RS +3
|
||||||
|
.P
|
||||||
When prompted for selection criteria, the data you provide must take one
|
When prompted for selection criteria, the data you provide must take one
|
||||||
of two forms.
|
of two forms.
|
||||||
There are 3 required pieces of information, with a 4th as optional.
|
There are 3 required pieces of information, with a 4th as optional.
|
||||||
@ -1827,10 +1830,13 @@ This happens, for example, because '100.0m' (MiB) would appear greater than
|
|||||||
If your filtered results appear suspect, simply altering justification or
|
If your filtered results appear suspect, simply altering justification or
|
||||||
scaling may yet achieve the desired objective.
|
scaling may yet achieve the desired objective.
|
||||||
See the 'j', 'J' and 'e' \*(CIs for additional information.
|
See the 'j', 'J' and 'e' \*(CIs for additional information.
|
||||||
|
.RE
|
||||||
|
|
||||||
Here are some examples of actual valid filters.
|
.B Potential Problems
|
||||||
The second \fBGROUP\fR filter might not display anything at all,
|
.RS +3
|
||||||
just a blank \*(TW.
|
.P
|
||||||
|
These \fBGROUP\fR filters could produce the exact same results or the
|
||||||
|
second one might not display anything at all, just a blank \*(TW.
|
||||||
.Bd -literal
|
.Bd -literal
|
||||||
GROUP=root ( only the same results when )
|
GROUP=root ( only the same results when )
|
||||||
GROUP=ROOT ( invoked via lower case 'o' )
|
GROUP=ROOT ( invoked via lower case 'o' )
|
||||||
@ -1838,44 +1844,55 @@ just a blank \*(TW.
|
|||||||
|
|
||||||
Either of these \fBRES\fR filters might yield inconsistent and/or
|
Either of these \fBRES\fR filters might yield inconsistent and/or
|
||||||
misleading results, depending on the current memory scaling factor.
|
misleading results, depending on the current memory scaling factor.
|
||||||
|
Or both filters could produce the exact same results.
|
||||||
RES>9999 ( only the same results when )
|
RES>9999 ( only the same results when )
|
||||||
!RES<10000 ( memory scaling is at 'KiB' )
|
!RES<10000 ( memory scaling is at 'KiB' )
|
||||||
.Ed
|
.Ed
|
||||||
|
|
||||||
And the \fBnMin\fR filters help illustrate a problem unique to scalable fields.
|
This \fBnMin\fR filter illustrates a problem unique to scalable fields.
|
||||||
This particular field can display a maximum of 4 digits, beyond which
|
This particular field can display a maximum of 4 digits, beyond which values
|
||||||
vaules are automatically scaled to KiB or above.
|
are automatically scaled to KiB or above.
|
||||||
So while amounts greater than 9999 exist, they will appear as 2.6m, 197k, etc.
|
So while amounts greater than 9999 exist, they will appear as 2.6m, 197k, etc.
|
||||||
Then by exploiting the trailing space, the second series of filters could
|
|
||||||
achieve the original objective, but is offered for emphasis only.
|
|
||||||
.Bd -literal
|
.Bd -literal
|
||||||
nMin>9999 ( always a blank \*(TW )
|
nMin>9999 ( always a blank \*(TW )
|
||||||
'!nMin=0 ' + '!nMin=1 ' + '!nMin=2 ' + '!nMin=3 ' ...
|
|
||||||
.Ed
|
.Ed
|
||||||
|
.RE
|
||||||
|
|
||||||
The final examples illustrate how 'Other Filtering' can be creatively
|
.B Potential Solutions
|
||||||
|
.RS +3
|
||||||
|
.P
|
||||||
|
These examples illustrate how 'Other Filtering' can be creatively
|
||||||
applied to achieve almost any desired result.
|
applied to achieve almost any desired result.
|
||||||
The first one also reminds us that a trailing space is part of every
|
Single quotes are sometimes shown to delimit the spaces which are part of
|
||||||
displayed field.
|
a filter or to represent a request for status (^O) accurately.
|
||||||
Single quotes are shown to delimit spaces which are part of
|
But if you used them with if-values in real life, no matches would be found.
|
||||||
the filters or to represent a request for status (^O) accurately.
|
|
||||||
But if you used them in real life, no matches would be found.
|
|
||||||
|
|
||||||
Assuming field \fBnTH\fR is displayed, the first filter will result in
|
Assuming field \fBnTH\fR is displayed, the first filter will result in
|
||||||
only multi-threaded processes being shown.
|
only multi-threaded processes being shown.
|
||||||
|
It also reminds us that a trailing space is part of every displayed field.
|
||||||
The second filter achieves the exact same results with less typing.
|
The second filter achieves the exact same results with less typing.
|
||||||
With Forest View mode active and the \fBCOMMAND\fR column in view, the
|
|
||||||
third filter effectively collapses child processes so that just 3 levels
|
|
||||||
are shown.
|
|
||||||
The final example shows the 2 concurrent filters necessary to display
|
|
||||||
tasks with priorities of 20 or more, since some might be negative.
|
|
||||||
.Bd -literal
|
.Bd -literal
|
||||||
!nTH=' 1 ' ( ' for clarity only )
|
!nTH=' 1 ' ( ' for clarity only )
|
||||||
nTH>1 ( same with less i/p )
|
nTH>1 ( same with less i/p )
|
||||||
!COMMAND=' `- ' ( ' for clarity only )
|
|
||||||
'PR>20' + '!PR=-' ( 2 for right result )
|
|
||||||
.Ed
|
.Ed
|
||||||
|
|
||||||
|
With Forest View mode active and the \fBCOMMAND\fR column in view, this
|
||||||
|
filter effectively collapses child processes so that just 3 levels are shown.
|
||||||
|
.Bd -literal
|
||||||
|
!COMMAND=' `- ' ( ' for clarity only )
|
||||||
|
.Ed
|
||||||
|
|
||||||
|
The final two filters appear as in response to the status request key (^O).
|
||||||
|
In reality, each filter would have required separate input.
|
||||||
|
The \fBPR\fR example shows the two concurrent filters necessary to display
|
||||||
|
tasks with priorities of 20 or more, since some might be negative.
|
||||||
|
Then by exploiting trailing spaces, the \fBnMin\fR series of filters could
|
||||||
|
achieve the failed '9999' objective discussed above.
|
||||||
|
.Bd -literal
|
||||||
|
'PR>20' + '!PR=-' ( 2 for right result )
|
||||||
|
'!nMin=0 ' + '!nMin=1 ' + '!nMin=2 ' + '!nMin=3 ' ...
|
||||||
|
.Ed
|
||||||
|
.RE
|
||||||
|
|
||||||
\*(NT When 'Other Filtering' is active, \*(We turns column highlighting
|
\*(NT When 'Other Filtering' is active, \*(We turns column highlighting
|
||||||
\*F to prevent false matches on internal non-display escape sequences.
|
\*F to prevent false matches on internal non-display escape sequences.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user