A static view process statistics
1, PS the AUX : show process information in a simple list form
Options: a display information about all processes in the current terminal, including processes of other users
u use user-based format of the output process information
x displays the current user process information in all terminals
USER: User
PID:PID号
% CPU: The percentage of CPU usage
The percentage of memory usage:% MEN
VSZ: Virtual Memory
RSS: Physical Memory
TTY: terminal
STAT: The current state of the process
START:
TIME: process CPU usage time
Information about the process of command: COMMAND
2, PS -elf : Display process information system in long format, contains more content
Options: -e show all processes within the information system
-l use a long (long) format to display process information
-f use full (full) format to display process information
3, PS : displays only the current user session open process
4, view details of a process
A, PS the AUX | grep + "Process Name"
b, PS -elf | grep + "Process Name"
Supplementary: PS the AUX --no-header | More: (when using a number of statistical line) to remove the head display
Second, the dynamic view process statistics
1, Top : terminal displays the process of ranking in the current full-screen interactive interface, time tracking occupancy including CPU, memory and other system resources, three seconds refresh By default, the default sort order CPU utilization.
Options: -d specify a refresh interval in seconds
-b in a batch processing mode, typically used in conjunction with -n
-N Specifies the number of cycles displayed
-u Specifies the user name
-p specify a process ID