Htop
Htop is a Linux tool to see the processes you're currently running with information on each process.
To start htop, type htop in the bash. The output would be a process table with resources usage and general server information above.
Typing h brings the help screen.
Both top and htop can:
- see processes status live
- view numbers about resources usage at the top
- Sorting processes.
Htop can view processes list sorted by CPU (P), memory(M), time(T).
To sort by other columns, press F6, make selection using arrow keys, press RETURN.
- Show processes by user
Press u, make selection using arrow keys, press RETURN.
- View colored graphs of resources usage at the top
CPU usage bar: [low-priority/normal/kernel/virtualiz used%] Memory bar: [used/buffers/cache used/total] Swap bar: [used used/total]
- Use arrow keys to navigate and scroll processes list
This is one of the main differences between htop and top. It allows to kill processes in the console without remembering their pid and exiting.
- Kill processes
Select the process you want to kill; press "F9"; make selection using arrow keys; press "RETURN".
- Search processes
To search processes, press "F3" and type the search term. The search is live.
- Quit
To exit htop, press "Q".