Interview Q&A · questions with model answers
Linux Interview Questions
Part of the study plan for: DevOps Engineer · Site Reliability Engineer (SRE)
Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.
-
How do systemd units work, and how do you debug a service that won't start?
systemd starts services from unit files that declare the command, user, dependencies, restart policy and environment. systemctl status and journalctl -u name show why a unit failed; most failures…
-
Explain Linux file permissions, ownership and the special bits.
Each file has an owner, a group and read/write/execute bits for owner, group and others (for example 0640). The special bits are setuid (run as the file's owner), setgid (run as the group, or new…
-
What happens when a Linux system boots?
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…