Linux OS Internals (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)
What is PID 1 (`init` / `systemd`) and what is its role?
junior Levellinux-osBasic
In Simple Words: PID 1 is the very first process launched by the Linux kernel during boot:
- The ancestor/parent of all other processes in the operating system.
- Responsibilities:
- Bootstraps system services, mounts filesystems, and configures networking.
- Adopts Orphaned Processes: When a parent process dies before its child, PID 1 adopts the child and reaps its exit status to prevent zombie leaks.
- Manages system shutdown and service lifecycles.