From the course: Linux System Engineer: Kernel Tuning and Remote Logging

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Monitor processes in real time

Monitor processes in real time

From the course: Linux System Engineer: Kernel Tuning and Remote Logging

Start my 1-month free trial

Monitor processes in real time

- [Instructor] The PS command shows you up-to-date process information but we have to keep running it to get real-time data. Linux has another tool used just for displaying real-time process information called TOP. In a terminal, start TOP by typing in t-o-p and hitting enter. Note that the display is being updated every couple of seconds. In the summary area at the top of the screen, TOP shows how long the system has been up, the load average, how many processes are running, how many are waiting for CPU time, the overall CPU usage, and memory usage. We can modify this area with a few shortcuts. Press l to show or hide the load average/uptime line. Press number one if you want to show CPU usage for all CPU cores if you have more than one. Press t if you want to toggle between task and CPU states. You can also turn this data off as well. Pressing number one and t allows you to have a solid bar for each CPU core. Press M to toggle between different memory displays or turn off memory…

Contents