Process: When we run the program, Linux creates a special environment for the program that contains all the resources that the program runs, which is called a process
Foreground process: Generally we use some commands, all belong to the foreground process, direct output results to the display
Background process: Add & at the end of the command to create the simplest background process
Resident process: A system-level process that runs in the background with root privileges and can handle other process requests
Orphan process: After killing the parent process, the child process without the father, became the orphan process, the Init process became their father
Zombie Process: The process is aborted, the PS command can also see that we can kill the zombies by killing their parent process
Use the command PS to view the running process, parameters:-F (full All information)-aux (view all the processes in memory)
For example:
UID PID PPID C stime TTY time CMD
Root 1562 1559 0 14:33 pts/0 00:00:00-bash
Root 1586 1562 1 14:36 pts/0 00:00:00 ps-f
Using the command top, you can view the running processes dynamically
The PID is the process Id,ppid is the parent process ID, and most of the commands that the user runs use the shell as the parent process ID
Kill the process using the command, parameters: PID
[Linux] Linux systems (Process Management)