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.

EasyTechnical
19 practiced

Demonstrate how to use journalctl to: 1) show logs for the previous boot, 2) follow logs in real-time for the unit nginx.service, and 3) filter messages by priority and timestamp. Explain the difference between persistent and volatile journals and how to enable persistent journaling.

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.

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

Describe the lifecycle commands for services and the difference between stop, restart, reload and daemon-reload in systemd. Provide examples of when you would prefer reload over restart and the trade-offs involved (state preservation vs configuration application).

MediumTechnical
17 practiced

Given the following vmstat sample line: 'procs -----------memory---------- ---swap-- -----io---- -system-- -----cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st 1 1 0 2048000 102400 512000 0 0 0 128 256 1024 2 1 79 18 0', explain what the most important fields indicate and what the values suggest about CPU and I/O behavior on the host.

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.