Home Explore Blog CI



man-pages

18th chunk of `top.man`
1dee1b39e656d6232681a4b02b2b38664cba32bf702674950000000100000fda
 1,152,921,504,606,846,976 bytes).

              If you see a ‘+’ between a displayed number and the following label, it means that top was forced to truncate some portion of that number.  By raising the scaling factor, such truncation can be avoided.

          e  :Enforce‐Task‐Memory‐Scale in Task Area
              With this command you can cycle through the available task area memory scaling which ranges from KiB (kibibytes or 1,024 bytes) through PiB (pebibytes or 1,125,899,906,842,624 bytes).

              While  top  will  try to honor the selected target range, additional scaling might still be necessary in order to accommodate current values.  If you wish to see a more homogeneous result in the memory columns,
              raising the scaling range will usually accomplish that goal.  Raising it too high, however, is likely to produce an all zero result which cannot be suppressed with the ‘0’ interactive command.

          g  :Choose‐Another‐Window/Field‐Group
              You will be prompted to enter a number between 1 and 4 designating the field group which should be made the ‘current’ window.  You will soon grow comfortable with these 4 windows, especially after experimenting
              with alternate-display mode.

          H  :Threads‐mode toggle
              When this toggle is On, individual threads will be displayed for all processes in all visible task windows.  Otherwise, top displays a summation of all threads in each process.

          I  :Irix/Solaris‐Mode toggle
              When operating in Solaris mode (‘I’ toggled Off), a task’s cpu usage will be divided by the total number of CPUs.  After issuing this command, you’ll be told the new state of this toggle.

       *  k  :Kill‐a‐task
              You will be prompted for a PID and then the signal to send.

              Entering no PID or a negative number will be interpreted as the default shown in the prompt (the first task displayed).  A PID value of zero means the top program itself.

              The default signal, as reflected in the prompt, is SIGTERM.  However, you can send any signal, via number or name.

              If you wish to abort the kill process, do one of the following depending on your progress:
                  1) at the pid prompt, type an invalid number
                  2) at the signal prompt, type 0 (or any invalid signal)
                  3) at any prompt, type <Esc>

          q  :Quit

       *  r  :Renice‐a‐Task
              You will be prompted for a PID and then the value to nice it to.

              Entering no PID or a negative number will be interpreted as the default shown in the prompt (the first task displayed).  A PID value of zero means the top program itself.

              A positive nice value will cause a process to lose priority.  Conversely, a negative nice value will cause a process to be viewed more favorably by the kernel.  As  a  general  rule,  ordinary  users  can  only
              increase the nice value and are prevented from lowering it.

              If you wish to abort the renice process, do one of the following depending on your progress:
                  1) at the pid prompt, type an invalid number
                  2) at the nice prompt, type <Enter> with no input
                  3) at any prompt, type <Esc>

          W  :Write‐the‐Configuration‐File
              This will save all of your options and toggles plus the current display mode and delay time.  By issuing this command just before quitting top, you will be able restart later in exactly that same state.

          X  :Extra‐Fixed‐Width
              Some fields are fixed width and not scalable.  As such, they are subject to truncation which would be indicated by a ‘+’ in the last position.

              This interactive command can be used to alter the widths of the following fields:

                  field  default    field  default    field   default
                  GID       5       GROUP     8    

Title: Top Command: More Global Commands and Task Manipulation
Summary
This section details more interactive commands within the 'top' command. It covers enforcing task memory scale, choosing a different window/field group, toggling threads mode, toggling Irix/Solaris mode, killing a task, quitting the program, renicing a task, writing the configuration file, and adjusting extra fixed-width fields.