I. Description of the Order
The PS command is the most basic and very powerful process view command. Use this command to determine which processes are running and running, whether the process is complete, if the process is dead, which processes are consuming too many resources, and so on. In short, most of the information can be obtained by executing the command.
Second, parameter description
- PS A: Displays all programs under the current terminal, including other users ' programs.
- PS-A: Shows all programs.
- PS C: When the program is listed, the actual instruction name of each program is displayed, without the indication of the path, parameter, or resident service.
- PS-E: The effect of this parameter is the same as specifying the "A" parameter.
- PS E: Displays the environment variables used by each program when the program is listed.
- PS F: Displays the tree structure with ASCII characters and expresses the relationship between the programs.
- Ps-h: Displays a tree structure that represents inter-program relationships.
- Ps–n: Shows all the programs except the ones under the PS command Terminal.
- PS S: Show program status using program signal format.
- PS S: When listing programs, include interrupted sub-program data.
- ps-t< Terminal number >: Specify the terminal number and list the status of the program that belongs to the terminal.
- PS U: the user-oriented format to display the status of the program.
- PS x: Shows all programs, not the terminal to distinguish.
- Ps-l: The PID information is displayed longer and more detailed.
Iii. Introduction of specific usage
==>ps of Linux monitoring commands