Home Explore Blog CI



man-pages

25th chunk of `top.man`
87ab4dcea4bfbfbdebbf808b16fe37b2162c7c8d0e16718b0000000100000ff7
 Different task windows can be used to filter different users.  Later, if you wish to monitor all users again in the ‘current’ window, re‐issue this command but just press <Enter> at the prompt.

          V  :Forest‐View‐Mode toggle
              In  this  mode,  processes  are  reordered  according to their parents and the layout of the COMMAND column resembles that of a tree.  In forest view mode it is still possible to toggle between program name and
              command line (see the ‘c’ interactive command) or between processes and threads (see the ‘H’ interactive command).

              Note: Typing any key affecting the sort order will exit forest view mode in the ‘current’ window.  See topic 4c. TASK AREA Commands, SORTING for information on those keys.

          v  :Hide/Show‐Children toggle
              When in forest view mode, this key serves as a toggle to collapse or expand the children of a parent.

              The toggle is applied against the first (topmost) process in the ‘current’ window.  See topic 5c. SCROLLING a Window for additional information regarding vertical scrolling.

              If the target process has not forked any children, this key has no effect.  It also has no effect when not in forest view mode.

         ^E  :Scale‐CPU‐Time‐fields (Ctrl key + ‘e’)
              The ‘time’ fields are normally displayed with the greatest precision their widths permit.  This toggle reduces that precision until it wraps.  It also illustrates  the  scaling  those  fields  might  experience
              automatically, which usually depends on how long the system runs.

              For example, if ‘MMM:SS.hh’ is shown, each ^E keystroke would change it to: ‘MM:SS’, ‘Hours,MM’, ‘Days+Hours’ and finally ‘Weeks+Days’.

              Not all time fields are subject to the full range of such scaling.

       SIZE of task window

          i  :Idle‐Process toggle
              Displays  all  tasks  or just active tasks.  When this toggle is Off, tasks that have not used any CPU since the last update will not be displayed.  However, due to the granularity of the %CPU and TIME+ fields,
              some processes may still be displayed that appear to have used no CPU.

              If this command is applied to the last task display when in alternate-display mode, then it will not affect the window’s size, as all prior task displays will have already been painted.

          n | #  :Set‐Maximum‐Tasks
              You will be prompted to enter the number of tasks to display.  The lessor of your number and available screen rows will be used.

              When used in alternate-display mode, this is the command that gives you precise control over the size of each currently visible task display, except for the very last.  It will  not  affect  the  last  window’s
              size, as all prior task displays will have already been painted.

              Note: If you wish to increase the size of the last visible task display when in alternate-display mode, simply decrease the size of the task display(s) above it.

       SORTING of task window

          For compatibility, this top supports most of the former top sort keys.  Since this is primarily a service to former top users, these commands do not appear on any help screen.
                command   sorted‐field                  supported
                A         start time (non‐display)      No
                M         %MEM                          Yes
                N         PID                           Yes
                P         %CPU                          Yes
                T         TIME+                         Yes

          Before  using  any  of the following sort provisions, top suggests that you temporarily turn on column highlighting using the ‘x’ interactive command.  That will help ensure that the actual sort environment matches
          your intent.

          The following interactive commands will only be honored when the current

Title: Top Command: Task Area Commands - Content and Size
Summary
This section details more interactive commands for the 'top' command's task area, including toggling forest view mode, hiding/showing children in forest view, scaling CPU time fields, toggling idle process display, and setting the maximum number of tasks to display. It also introduces sorting options available within the task window.