Home Explore Blog CI



man-pages

19th chunk of `top.man`
76744a381bab4fd139de0574f770672bab771bd6aa6e6fba0000000100000fe8
 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       WCHAN      10
                  LOGID     5       LXC       8       nsCGROUP   10
                  RUID      5       RUSER     8       nsIPC      10
                  SUID      5       SUSER     8       nsMNT      10
                  UID       5       TTY       8       nsNET      10
                                    USER      8       nsPID      10
                                                      nsTIME     10
                                                      nsUSER     10
                                                      nsUTS      10

              You will be prompted for the amount to be added to the default widths shown above.  Entering zero forces a return to those defaults.

              If you enter a negative number, top will automatically increase the column size as needed until there is no more truncated data.

              Note: Whether explicitly or automatically increased, the widths for these fields are never decreased by top.  To narrow them you must specify a smaller number or restore the defaults.

          Y  :Inspect‐Other‐Output
              After  issuing  the  ‘Y’ interactive command, you will be prompted for a target PID.  Typing a value or accepting the default results in a separate screen.  That screen can be used to view a variety of files or
              piped command output while the normal top iterative display is paused.

              Note: This interactive command is only fully realized when supporting entries have been manually added to the end of the top configuration file.  For details on creating those  entries,  see  topic  6b.  ADDING
              INSPECT Entries.

              Most of the keys used to navigate the Inspect feature are reflected in its header prologue.  There are, however, additional keys available once you have selected a particular file or command.  They are familiar
              to anyone who has used the pager ‘less’ and are summarized here for future reference.

                  key      function
                  =        alternate status-line, file or pipeline
                  /        find, equivalent to ‘L’ locate
                  n        find next, equivalent to ‘&’ locate next
                  <Space>  scroll down, equivalent to <PgDn>
                  b        scroll up, equivalent to <PgUp>
                  g        first line, equivalent to <Home>
                  G        last line, equivalent to <End>

          Z  :Change‐Color‐Mapping
              This key will take you to a separate screen where you can change the colors for the ‘current’ window, or for all windows.  For details regarding this interactive command see topic 4d. COLOR Mapping.

         ^G  :Display‐Control‐Groups        (Ctrl key + ‘g’)
         ^K  :Display‐Cmdline               (Ctrl key + ‘k’)
         ^N  :Display‐Environment           (Ctrl key + ‘n’)
         ^P  :Display‐Namesspaces           (Ctrl key + ‘p’)
         ^U  :Display‐Supplementary‐Groups  (Ctrl key

Title: Top Command: Configuration, Field Widths, Output Inspection, and Color Mapping
Summary
This section describes several interactive commands in the 'top' utility. It covers writing the configuration file to save settings, adjusting extra fixed-width field sizes, inspecting other output (requires manual configuration file entries), changing color mappings, and displaying various process-related information (Control Groups, Command Line, Environment, Namespaces, and Supplementary Groups) using control key combinations.