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

You must add a new user for an application operator and configure SSH key-based authentication, sudo access for a limited set of commands, and enforce disabling password authentication. Describe the exact commands and configuration steps (including edits to sshd_config and sudoers.d) to achieve this securely and how to rotate that user's SSH keys.

HardTechnical
24 practiced

You export /srv/export via NFS and observe that root-owned files created on clients appear as 'nobody' on the server. Explain root_squash, all_squash, anonuid/anongid options and how to configure /etc/exports to allow root write access from a specific CIDR while still preventing other hosts from having that access. Describe security considerations and alternatives such as Kerberos-secured NFS.

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.

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.