InterviewStack.io LogoInterviewStack.io

Linux System Administration Questions

Linux specific system administration and deep operating system topics. Areas include Linux kernel concepts, process lifecycle and signals, memory management and swap behavior in Linux, Linux file systems and permission models, boot processes and init systems such as systemd, package management and software installation, service management and system daemons, shell and scripting for automation and debugging, performance tuning and profiling, log management and diagnostic techniques, security and access control on Linux, and approaches to investigating and resolving systemic failures in Linux environments. At senior levels candidates should demonstrate both operational competence and an understanding of internal mechanisms and trade offs.

MediumTechnical
23 practiced
Which OS-level Linux metrics would you collect from hosts for SRE visibility (e.g., CPU steal, load average, iowait, context-switch rate, interrupts, open file descriptors, page faults, disk latency, entropy), why each matters, and propose threshold examples for alerts and dashboards for a web-service fleet.
MediumTechnical
28 practiced
A long-running service gradually consumes more memory: describe the tools and methodology to find a memory leak in a Linux environment. Include commands and how to use /proc/<pid>/smaps, pmap, valgrind/memcheck for native code, heaptrack or massif, tracemalloc for Python, and approaches to mitigate memory growth without immediate restart.
HardSystem Design
19 practiced
For a PostgreSQL workload on Linux with heavy random I/O, decide between hardware RAID vs software RAID, recommend mount options (noatime, barriers), and kernel/perf tunables. Explain how you would benchmark (fio) to compare configurations and the trade-offs in throughput, latency and recovery time.
EasyTechnical
18 practiced
Write a POSIX-compliant shell script (bash/sh) named /usr/local/bin/rotate_logs.sh that rotates a given log directory: compresses logs older than 1 day, keeps last 7 compressed archives, runs atomically (avoid concurrent executions), and logs its own activity to /var/log/rotate_custom.log. The script will be run from cron daily. Include error handling and explain how to schedule it.
EasyTechnical
24 practiced
Explain Linux file permissions and ownership: rwx for user/group/other, numeric (e.g., 0755) vs symbolic chmod (e.g., u+s,g-w), umask behavior, and special bits: setuid, setgid and sticky bit. Provide an example when setuid might be used and discuss the security risks of setuid binaries on production hosts.

Unlock Full Question Bank

Get access to hundreds of Linux System Administration interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.