[Linux] Linux systems (Process Management)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.