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

Describe how you would use strace to diagnose a program that fails with 'Permission denied' when opening a config file. Include the strace invocation, how to capture output across forks, how to filter to file-related syscalls, and what specific return values you'll look for in the trace.

EasyTechnical
20 practiced

Explain basic Linux firewall concepts: netfilter hooks, the iptables chains INPUT/OUTPUT/FORWARD, default policies, and how firewalld maps zones to rules. Show commands to list current rules and how to temporarily allow a port for debugging.

MediumTechnical
18 practiced

Audit for setuid and setgid programs in your infrastructure. Provide a command to find them and describe steps to minimize risk (e.g., removal, replacing with capabilities, using sudo wrappers). Also describe how to test that removing a setuid binary does not break critical functionality.

EasyTechnical
16 practiced

Describe how SSH public key authentication works end-to-end. Include steps to generate a key pair, install the public key on a remote host, secure the private key, and how ssh-agent and agent forwarding work. Mention common pitfalls during setup.

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.

Unlock Full Question Bank

Get access to all 17 Linux System Administration interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.