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