Essential Linux concepts and architecture
This domain, Essential Linux concepts and architecture, tests whether you understand how a Linux system is assembled before you administer it: the kernel and user-space split, the boot chain, the filesystem hierarchy, and the service manager. Questions typically ask what happens at a given boot stage or which command reveals a kernel fact.
Core model
- The kernel is monolithic with loadable modules: inspect with
lsmod,modinfo, load withmodprobe. User programs reach hardware only through system calls. - Boot order: firmware (UEFI/BIOS) → bootloader (GRUB2) → kernel plus initramfs → PID 1 (
systemd) → targets. Targets replace SysV runlevels:multi-user.targetis roughly runlevel 3,graphical.targetroughly 5,rescue.targetroughly 1. - The FHS fixes meanings:
/etcconfiguration,/varvariable data,/usrprograms and libraries,/procand/syskernel interfaces,/devdevice nodes. dmesgorjournalctl -kreads the kernel ring buffer;uname -rprints the running kernel;sysctlreads and writes kernel tunables.
Worked example
A server drops to emergency.target after an /etc/fstab edit. Reasoning: systemd reaches local-fs.target early, one mount unit failed, and the boot transaction could not complete. Remount / read-write with mount -o remount,rw /, fix the line, run systemctl daemon-reload, test with mount -a, then reboot. fstab is a boot dependency, not a runtime convenience.
Traps
- Confusing
systemctl startwithenable(now versus at boot). - Treating
/procentries as ordinary files on disk. - Editing fstab without a
mount -atest or UUIDs. - Assuming
dmesgalways covers the current boot after the ring buffer wraps.