PS command function in Linux

PS is one of the Linux system commands. It is a command to view the process in Linux. PS looks at the running process, and ps aux looks at all the processes.

PS provides us with a one-time view of the process, the results it provides are not dynamic and continuous; if you want to monitor the process time, you should use the top tool.

The kill command is used to kill processes
. There are 5 states of process on linux:

  1. Running (running or waiting in the run queue)
  2. Interrupt (in sleep, blocked, waiting for the formation of a certain condition or receiving a signal)
  3. Non-interruptible (not wake up or run after receiving the signal, the process must wait until an interrupt occurs)
  4. Zombie (the process has been terminated, but the process descriptor exists until the parent process calls the wait4() system call to release)
  5. Stop (the process stops running after receiving SIGSTOP, SIGSTP, SIGTIN, SIGTOU signals)

Guess you like

Origin blog.csdn.net/weixin_43283397/article/details/109380273