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

Write a Bash function that creates a secure temporary directory, sets permissions so only the owner can access it, and registers a trap to remove it on EXIT. Provide the function and an example of how to use it in a script safely handling spaces in filenames.

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.

HardTechnical
17 practiced

You are responsible for hardening SSH across a fleet. Provide an actionable plan covering /etc/ssh/sshd_config changes, centralized key or certificate management, rate limiting/brute force protection, use of bastion hosts, monitoring and alerting for suspicious access, and safe rollout steps to avoid locking out administrators.

EasyTechnical
25 practiced

Compare inspecting logs under /var/log with using journalctl on a modern systemd-based host. When would you prefer one over the other, and how do you extract logs for a single service across multiple boots and time ranges? Provide example journalctl commands.

MediumTechnical
19 practiced

A server fails to boot after a kernel update. GRUB starts but the boot halts with 'unable to find root' and the system drops to an initramfs shell. As the Systems Administrator, explain step-by-step how you would recover the system using a rescue/live USB: mount partitions, chroot into the installed system, regenerate initramfs or fix /etc/fstab, and reinstall GRUB if necessary. Include concrete commands.

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.