Linux interview question
What happens when a Linux system boots?
How it works Asked in DevOps Engineer · Site Reliability Engineer (SRE) interviews
Summary
Firmware (UEFI or BIOS) loads a bootloader (GRUB), which loads the kernel and an initramfs. The kernel initialises hardware, the initramfs finds and mounts the real root filesystem, then the kernel starts PID 1 (systemd), which starts units in dependency order until it reaches the default target.
Keep reading with a membership
The full answer with examples, key points and comparisons is part of the membership, along with every other interview answer, progress tracking and Daily Review. Most-asked answers stay free to read.
More Linux questions
- A Linux server has high CPU usage. How do you find the cause?
- What do top, htop, vmstat, iostat, ss and lsof each tell you?
- Write a script that alerts when disk usage passes a threshold.
- How do you troubleshoot DNS resolution and network connectivity on Linux?
- A server keeps running out of memory and the kernel kills processes. How do you investigate?
- The disk is full, but du shows far less usage than df. What's going on?
- How do systemd units work, and how do you debug a service that won't start?
- Explain Linux file permissions, ownership and the special bits.