Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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.

share|improve this question
    
patrix answer is spot on. I highly recommend htop. It's available in MacPorts and other alt package managers. It's colorized and is packed with view options. It resizes based on your window and allows scrolling in the vertical an horizontal directions. You'll never you top again :) –  ephsmith Sep 2 '12 at 19:00
add comment

1 Answer 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)
share|improve this answer
    
At the risk of being redundant here, is there no native scrolling support in terminal for either axis to handle overflow content? I dont want to sound ungrateful either. I definitely appreciate the alternate methods for achieving the end-result in top, I could easily see the same scenario occur in other functions. –  Visyoual Oct 2 '12 at 2:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.