The top
(table of processes) command shows a real-time view of the running processes in Linux and displays kernel-managed tasks. The command also provides a system information summmary that shows resource utilization, including CPU and memory usage.
Some of the operations we can perform along with top commands are:
top then c
: shows commands absolute pathtop then k
: kills a process by PIDtop then n
: to change the no of task. displayedtop then d,s
: to change interval of refreshtop then M
: to sort the running processes by memory usagetop then r
: we can change the nice value of a PIDtop then u
: to filter task by usertop then f
: Field Managementtop then h
: helptop then z or b
: Toggle: ‘z’ color/mono; ‘b’ bold/reversetop then x y
: `x’ sort field; ‘y’: runnnig taskstop then i
: process which some memory usage