Brief introduction:
Htop is an interactive process browser under Linux that can be used to replace the top command under Linux;
is an interactive process viewer in a Linux system, a text-mode application (in the console or X terminal) that requires ncurses;
Compared to top, Htop has the following advantages:
You can scroll through the list of processes horizontally or vertically to see all the processes and the complete command line.
On startup, it's faster than top.
Process number is not required to kill the process.
Htop supports mouse operation.
Top is already very old.
Htop Parameters:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6C/2D/wKiom1VBiYDjf_dOAAgUWGehR88583.jpg "title=" QQ picture 20150430094622.jpg "Width=" "height=" 460 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:750px;height:460px; Float:left, "alt=" wkiom1vbiydjf_doaaguwgehr88583.jpg "/> above the upper left corner of the CPU, memory, swap area usage, the right display tasks, load, boot time, the following is the process of real-time status.
PID: Identification number of the
User: Users running this process
PRI: Priority of the process
NI: The priority value of the process, which is 0 by default, can be adjusted
VIRT: Virtual memory value for process consumption
RES: The physical memory value that the process occupies
SHR: Shared memory value for process consumption
S: Health of the process, R for running, s for hibernation, waiting to wake up, Z for zombie state
%CPU: CPU usage consumed by this process
%MEM: The percentage of physical memory and total memory that the process occupies
Time+: Total CPU Time after the process is started
Command: Start command name for process startup
The following is the function of F1~F10 and the corresponding letter shortcut keys.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6C/2E/wKiom1VBikvynJ8cAAJhKsvInGE619.jpg "title=" Qq20150430094920.png "width=" 740 "height=" 301 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" WIDTH:740PX;HEIGHT:301PX; "alt = "Wkiom1vbikvynj8caajhksvinge619.jpg"/>
Command-line option (Command-Line options)
-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
Interactive commands (INTERACTIVE COMMANDS)
Up and down keys or PgUp, PgDn Select the desired process;
key around or Home, End move the field, or you can select the process directly with the mouse;
Space Mark/Unmark a process. Commands can be used for multiple processes, such as "kill", to be applied to all flagged processes
U Unmark All Processes
s Select a process, press S: System call to trace a process with strace
L show files opened by the process: if Lsof is installed, press this key to display the files opened by the process
I Reverses the sort order, and if the sort is a positive order, it is reversed in reverse and vice versa
a Set CPU affinity: Flag which CPUs a process is allowed to use. (on machines with multiple processors)
u Show specific user processes
M Sort by memory usage
P Sort by CPU usage
T use Sort by time+
F Trace Process: If the sort order causes the selected process to move around the list, let the selected bar follow the process. This is useful for monitoring a process, and in this way you can keep a process visible on the screen. Using the arrow keys will stop the function.
K Show/Hide Kernel threads
H Show/Hide User threads
ctrl-l Refresh
Numbers PID Lookup: Input PID, the cursor will be moved to the corresponding process
This article from "Guangzhou, Rain People" blog, please be sure to keep this source http://liulihuan.blog.51cto.com/8018739/1640759
Htop of performance monitoring of Linux system