htop is an advanced alternative to top in linux for monitoring processes.
Installation on Linux Ubuntu/Debian is performed with the command:
sudo apt-get install htop
Installation on Linux CentOS/Fedora:
sudo yum install htop
Startup command:
htop
I will describe the control keys:
Up and down arrows can switch between processes.
Space/U – marking/unmarking process
F1 – reference
F2 – settings
F3 – process search
F4 – list filtering
F5 – tree display
F6 – list sorting
F7/F8 – increase/decrease priority
F9 – kill a process or marked processes (works if htop is running as administrator)
F10 or q – output
Shift+p – sorting by processor load
Shift+m – sorting by memory load
Shift+t – sorting by the duration of the process
Official site: htop.sourceforge.net