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

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.

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

Describe how LUKS/dm-crypt encryption interacts with LVM and the filesystem layer. Explain the safe sequence and caveats to resize an encrypted LVM volume and its contained filesystem, how to rekey a LUKS device with minimal downtime, and emergency recovery steps if the LUKS header becomes corrupted.

EasyTechnical
24 practiced

You attached a new block device /dev/sdb to a Linux VM. Provide a step-by-step command sequence to: create a single partition, format it as ext4, mount it at /data, set ownership to user 'app' and group 'app', and add a persistent /etc/fstab entry using the partition UUID. Explain each command used and how to verify everything is correct.

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.