HP StorageWorks XPath OS 7.4.X Command Reference Guide (AA-RVHCC-TE, September 2005)

XPath OS 7.4.x command reference guide 249
Both the count and number operands can be specified as infinite, indicating that they can stretch as
far as possible. This is accomplished by using any proper prefix of the keywords infinity, maximum, or
all. The default for count on an intelligent terminal is infinity.
The environment variable TOP is examined for options before the command line is scanned. This enables
users to set their own defaults. The number of processes to display can also be specified in the environment
variable TOP. The operands -I, -S, and -u are actually toggles. A second specification of any of these
operands negates the first. Thus, a user who has the environment variable TOP set to –I can use the
command top –I to display idle processes.
Interactive mode
When top is running in interactive mode, it reads commands from the terminal and acts upon them
accordingly. In this mode, the terminal is put in CBREAK; a character is processed as soon as it is typed.
Almost always, a key is pressed when top is between displays, that is, while it is waiting for time
seconds to elapse. If this is the case, the command is processed and the display is updated immediately
thereafter (reflecting any changes that the command might have specified). This happens even if the
command was incorrect.
If a key is pressed while top is updating the display, top finishes the update and then processes the
command. Some commands require additional information, and the user is prompted accordingly. While
typing this information, the user’s erase and kill keys (as set up by the command stty) are recognized; a
newline character terminates the input.
These commands are currently recognized (^L refers to Ctrl-L):
-s time Sets the delay between screen updates to time seconds. The default
delay between updates is nD seconds.
-o field Sorts the process display area on the specified field. The field name is the
name of the column as seen in the output, but in lowercase letters. Likely
values are cpu, size, res, and time, but this might vary on different
operating systems. Note that not all operating systems support this
option.
-U user Shows only those processes owned by user name. This option currently
accepts only user names and will not understand UID numbers.
number Sets the number of top processes to be displayed.
^L Redraws the screen.
fBh or ? Displays a summary of the commands (help screen). Version
information is included in this display.
q Quits top.
d Changes the number of displays to show (prompts for new
number). Remember that the next display counts as one, so
typing d1 makes top show one final display and then
immediately exit.
n or # Changes the number of processes to display (prompts for new
number).
s Changes the number of seconds to delay between displays
(prompts for new number).
S Toggles between showing and not showing system processes.
k Sends a signal (kill by default) to a list of processes. This acts
similarly to the command kill.
r Changes the priority (the nice) of a list of processes. This acts
similarly to the command renice.