in reply to paequ2

Yeah, I would often just grab htop because I had no idea how to read the CPU usage out of top.
For example, for me it says:

%Cpu(s):  0,4 us,  0,4 sy,  0,0 ni, 98,8 id,  0,0 wa,  0,3 hi,  0,0 si,  0,0 st

Now that I look at it, I can guess that us and sy are supposed to be user and system time. And I guess id is supposed to be idle.
I have no guess what the other numbers might be, though. And well, I would often like to see the CPU usage per core.
Now I know that I can just press 1t and get effectively the same view as in htop.

I might learn top's filtering workflow, too. But so far, I always killed processes with ps -ef | grep <process-name> and then kill <pid>, which isn't particularly more cumbersome, so will see...

in reply to Ephera

I missed this part during my first read:

This screen allows you to customise which fields are displayed in the currently selected window. Use cursor keys (or Alt + j and k) to move up and down this list, d to toggle whether a field is displayed and s to choose the field by which the window is sorted.


and when I tried it, it seemed like my commands weren't doing anything... so in case anyone else finds this helpful...

How to sort columns in top.
- Launch top
- Press f (not SHIFT+F)
- Use arrow keys or alt+j / alt+k to select a column
- Press s to sort by the column you've currently selected
- note: you won't get any obvious feedback, this is normal... I guess
- look at the top line: whose current sort field is $COLUMN_NAME
- this line will change when you press s
- Press q to exit the Fields Management screen
- Selected column should now be sorted from largest to smallest

At this point, top may not look like it sorted the selected column. It may be helpful to tell top to highlight the currently sorted column. Press x to do this.

Now it should be easier to tell which column was sorted.

This entry was edited (4 days ago)