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 the day-to-day administration, troubleshooting, and hardening of Linux servers that underpin most infrastructure. The Linux operator's core skill set.
Explain the different systemd Service Type= options (simple, forking, oneshot, notify, dbus) and the implications each has on PID tracking, ExecStart behavior, and restart semantics. Provide guidance on which to choose for a classic daemon, a forking sysv-style init script, and a modern systemd-native service.
Explain what file descriptors are in Linux. Describe the difference between file descriptors and inodes, list the conventional standard descriptors (0,1,2), and show how to inspect a process's open descriptors using /proc/<pid>/fd and lsof. How would you temporarily and permanently increase the allowed number of open file descriptors for a process?
Explain how memory overcommit works on Linux. Include the vm.overcommit_memory and vm.overcommit_ratio settings, how the OOM killer decides victims, and strategies SREs can use to avoid out-of-memory events in memory-constrained environments.
A service periodically forks thousands of short-lived child processes and eventually exhausts PIDs on the host. Propose a mitigation plan including immediate controls and systemic changes: use of systemd LimitNPROC, pids cgroup controller, PID namespaces, limiting fork rates, and code fixes. Be specific about commands and configuration to apply.
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.
Unlock Full Question Bank
Get access to all Linux System Administration interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.