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

Explain the purpose of SELinux or AppArmor and how mandatory access control differs from traditional Unix discretionary permissions. Show commands to check whether SELinux is enforcing, list file contexts with ls -Z, and find denials logged in audit logs.

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

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

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.