For Linux process management commonly used is top, but the top command display results are not very intuitive, find information more difficult, in addition to top also use PS to view the system process, but PS has a disadvantage, the command shows only the system process when running the command, not the real-time state.
In Linux management there is a more user-friendly real-time monitoring software htop, the software on top for some beautification, can be installed through the Repoforge Yum source.
Htop
Run the Htop command:
# Htop
Results:
As you can see, the results are very beautiful.
Parameters
-C--no-color using a monochrome color scheme
-D--delay=delay Setting delay update time in seconds
-H--help Display htop command Help information
-U--user=username only shows a procedure for a given user
-P--pid=pid,pid ... Show only the given PIDs
-S--sort-key column to sort by
-v–version displaying version information
Shortcut keys
The following is the function of F1~F10 and the corresponding letter shortcut keys.
| Shortcut Key |
Function Key |
Description |
Chinese description |
| H? |
F1 |
Invoke Htop Help |
View Htop Usage Instructions |
| S |
F2 |
Htop Setup Menu |
Htop settings |
| / |
F3 |
Search for a Process |
Search process |
| \ |
F4 |
Incremental Process Filtering |
Incremental process Filter |
| T |
F5 |
Tree View |
Show tree structure |
| <, > |
F6 |
Sort by a column |
Select the Sort method |
| [ |
F7 |
Nice-(change priority) |
The nice value can be reduced so that the priority of the corresponding process can be increased |
| ] |
F8 |
Nice + (change priority) |
You can increase the nice value so that you can lower the priority of the corresponding process |
| K |
F9 |
Kill a Process |
Signals can be passed to the process |
| Q |
F10 |
Quit Htop |
End Htop
|
Tips
1, support keyboard up and down switch the selected process
2, support the mouse to select column header sorting
3, support press SPACEBAR to mark the current process
4. Support mouse click to select Process
Linux process Real-time monitoring-htop