Linux System Administration Questions

Operating and maintaining Linux and Unix systems: filesystems and permissions, process and service management, package management and updates, shell and scripting, storage, and network configuration on the host. Covers day-to-day administration, troubleshooting, monitoring and tuning host resource usage (CPU, memory, swap, and I/O), and hardening of Linux servers that underpin most infrastructure. The Linux operator's core skill set.

MediumTechnical
17 practiced

As the Systems Administrator, create a new user 'alice' with UID 1500, primary group 'developers', and home directory /home/alice. Set an initial password, configure password aging so it expires periodically, and demonstrate how to lock and unlock the account. Explain where password aging information is stored on the system and how you would inspect it for an existing user.

HardSystem Design
20 practiced

You are designing a multi-tenant server that runs user workloads as separate services. Using systemd, cgroups and Linux namespaces, design an isolation strategy that reduces risk of noisy neighbors while keeping management feasible. Discuss trade-offs for resource guarantees, security, and operational complexity.

MediumTechnical
18 practiced

A Python worker should gracefully finish processing its current job when systemd stops it. How would you implement a SIGTERM handler in Python to allow graceful shutdown, ensure in-flight jobs complete or checkpoint, and have systemd wait for this completion? Provide a short code example using the signal module and explain systemd timeout configuration (TimeoutStopSec).

MediumSystem Design
30 practiced

Explain the structure of a systemd unit file. Write an example service unit for /opt/app/bin/myservice that runs as user appuser, restarts on failure with a 10s backoff, writes logs to journald, and declares a dependency on network-online.target. Explain each directive you include.

HardTechnical
20 practiced

A long-running daemon gradually increases resident memory until the OS OOM-kills it. Describe methods and tools you would use to determine whether the leak is in the application, a third-party library, or the kernel. Include steps with pmap, /proc/<pid>/smaps, mass heap profiling tools, valgrind or sampling profilers, and how to gather evidence safely on production.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.