课程: Linux CentOS 7: Shells and Processes
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
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 top 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…