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.

  1. Most asked A Linux server has high CPU usage. How do you find the cause?

    Confirm what kind of CPU time it is, then find the process and, if needed, the code path. top or htop shows the busiest processes and the split between user (us), system (sy), I/O wait (wa) and…

  2. A server keeps running out of memory and the kernel kills processes. How do you investigate?

    Confirm it's the OOM killer (dmesg -T | grep -i oom, journalctl -k), see which process was killed and which was using memory, then decide whether it's a leak, a genuine increase in load, or limits…

  3. The disk is full, but du shows far less usage than df. What's going on?

    A process still holds open a file that was deleted (often a log rotated without the program reopening it). The space isn't freed until the file is closed, so df counts it but du can't see it. lsof…

Was this page helpful?

Report a mistake