Introduction:ps-report A snapshot of the current processes.
Purpose: get the current program running state
Overview:PS [Options]
type:PS is hashed (/BIN/PS)
Description
PS gets static information about the state of the program at a given moment, and if you want to get program run information dynamically, you can use the top command.
PS Help document too much information, remember the two commonly used:
PS -l # lists only programs related to the user's current bash, that is, the current bash program is the top parent program of other programs PS aux # lists system All Programs
Introduction:top-display Linux processes
Purpose: get program running status in real time
Summary:top-hv|-bchioss-d secs-n max-u| U user-p pid-o fld-w [cols]
type:top Is/usr/bin/top
Description
Dynamic Get program running state, information will be automatically refreshed frequently.
Parameters:
-D: followed by a number, how long the interval is refreshed, in seconds.
-P: After the program PID, specify the detection program.
The commands that can be manipulated during top execution:
P: Sort display by cup usage (%CPU).
M: Sorted by Memory Utilization (%MEM).
N: Sort the display by PID.
T: Sort by CPU cumulative usage time (time+)
Q: Leave Top program.
Linux command: Ps/top