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
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.

MediumTechnical
24 practiced

Give a command-line recipe to trace file descriptor leaks in a long-running server process. Include how you'd detect growth over time, correlate FDs to file paths or sockets, and tools to aggregate results across a fleet.

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

A service running as 'appuser' gets 'Permission denied' opening a config file, even though ls -l shows appuser owns it with read/write permission. The failure is intermittent: it works most of the time, then doesn't. Walk through how you'd systematically narrow down the cause, layer by layer, between the process and the file on disk.

EasyTechnical
20 practiced

You are the Systems Administrator for a Linux server. Using a single shell command (or pipeline) on a POSIX-compatible system, move all regular files in /var/logs/app that were modified within the last 24 hours into /tmp/recent, preserving filenames and safely handling spaces and newlines in filenames. Provide the command you would run and briefly explain each part.

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.