top command displays processor activity of your Linux box and also displays tasks managed by kernel in real-time. It’ll show processor and memory are being used and other information like running processes. This may help you to take correct action. top command found in UNIX-like operating systems.
How do you use top command?
Hit the k key while the top command is running. A prompt will ask you about the PID you want to kill. Enter the required process ID by viewing it from the list and then hit enter. The process and the corresponding application will close almost immediately.
What is the output of top command in Linux?
For each CPU, top displays three numbers and the graph. From left to right, the numbers are as follows: The combined us and ni percentage (user space+tasks with nonstandard nice settings).