Top as one of the most frequently used and most important Linux system monitoring tools in daily management work, can dynamically observe the status of system processes.
But the disadvantage is that only support keyboard operation, display is monotonous. As I've just turned to Linux for Windows, there's a better choice now:htop.
Htop is a basic text-mode, interactive process viewer for Linux systems. Used primarily in the console or shell, to replace top, or top, premium version.
Htop Command Strengths:
1) high-speed viewing of key performance statistics. such as CPU (multi-core layout), memory/exchange use;
2) ability to scroll through the list of processes horizontally or vertically. To view the entire process and the full command line;
3) The process can be killed by direct selection without the need to enter the process number.
4) through the mouse operation item;
5) starts faster than top.
The Htop command is not installed by default like the top command. Instead we need to manually install, under Ubuntu Command installation apt-get install Htop can be.
- htop often use function keys
F1: View htop Instructions F2: Set F3: Search Process F4: filter, press keyword to search F5: Show tree structure F6: Choose Sort by F7: reduce nice values so you can improve Priority of the corresponding process F8: Add nice value, which reduces the priority of the corresponding process F9: Kill the selected process F10: Exit htop /: Search character h: Show Help L: Show files opened by the process : Assume the lsof is installed. Press this key to display the files opened by the process U: Show all users. and the ability to select a particular user's process s: Call the system call to the Strace tracing process T: Show tree structure H: Show/Hide user thread I: Reverse sort order K: Show/Hide kernel thread M : Sort by memory consumption P: Sort by CPU T: Sort by execution time up or down key or PgUp, PgDn: Move selected process around key or home, End: Move list space (space): Mark/ Unmark a process. Commands can act on multiple processes, such as "kill", and will be applied to all marked processes
Execute htop directly, show:
Above the upper left corner shows the CPU, memory, swap area usage, the right display task, load, boot time, the following is the process real-time status.
The last line is the function menu of F1~F10 and the corresponding letter shortcut keys.
Press the F1. The help instructions are displayed:
To set it up, press F2:
This is where you want to add a display entry. The F5 or F6 can be added to the upper left or right side respectively, F9 can be removed and so on. Each entry supports four display modes: Text, Bar, Graph, LED. Note that the top-right corner shows these four effects, respectively.
Other operations are basically the same as setting up the BIOS under Windows, and the mouse operation is supported here.
To display the tree structure of a process, you can enter "T" or press F5, which functions like the Pstree command.
Use of the Linux system Management--htop command