In terminal, running top, info extends past the view of the window

I assume this occurs in more terminal functions than just top. Is there a way to view the information without resizing the console window? I currently have my console window set to open at 80x24, which is far too short in both columns and rows to display all the information.


Solution 1:

You can select the columns you want to display with -stats:

top -stats pid,cpu,command

See man top for a full list of available columns (listed under -o), the most interesting ones probably are

  • pid: Process ID
  • command: The name of the command
  • cpu: CPU usage
  • time: Execution time
  • vsize: Total memory size
  • state: Process state
  • uid: User ID (or user for user name)