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
19 practiced

Describe how you would use strace to diagnose a program that fails with 'Permission denied' when opening a config file. Include the strace invocation, how to capture output across forks, how to filter to file-related syscalls, and what specific return values you'll look for in the trace.

MediumTechnical
31 practiced

You suspect a host can't resolve external domains. Walk through how you'd isolate whether the problem is DNS configuration, the resolver itself, or something else entirely, and how you'd interpret what you find at each step.

EasyTechnical
17 practiced

When investigating an issue on a Linux server, which system log files would you check first and why? Mention at least three log files under /var/log and what type of information each contains.

HardTechnical
21 practiced

Explain Linux routing tables (main, local, and others), reverse path filtering (rp_filter), and how policy-based routing (ip rule) interacts with connection tracking and netfilter. Provide an example ip rule plus ip route that routes traffic from a specific source via a dedicated table and note potential pitfalls.

HardTechnical
17 practiced

Implement (or describe well-structured pseudocode for) a robust Python program that runs as a systemd service and detects when a cloud persistent disk has been resized by the provider. The program should safely resize partitions (if present), grow LVM PVs, extend LVs, and grow ext4/XFS filesystems with idempotency, logging, error handling and a dry-run mode. Describe how you would test this tool before fleet rollout.

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.