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

Describe the special permission bits: setuid, setgid and the sticky bit. Explain common uses (e.g., sudo setuid bit, shared temporary directories sticky bit), and show a find command to locate files with setuid or setgid on a system.

EasyTechnical
22 practiced

Write a one-line bash command to search under /var/log for files modified in the last 24 hours that contain the string ERROR (case-insensitive), and print the filename and matching lines. Explain the flags you used and how your command handles binary or compressed logs.

EasyTechnical
23 practiced

Provide a sed one-liner to replace all occurrences of the string foo with bar in place for all .conf files under /etc, making a backup with extension .bak. Explain the sed flags you used and how to test changes before mass-apply.

EasyTechnical
22 practiced

A host is showing high memory usage. Describe how you would use the free command and other tools to interpret memory and swap usage. What indicators tell you that swapping is harming performance versus being benign? Include commands and a brief interpretation guide.

EasyTechnical
20 practiced

Describe how to ensure correct system time and timezone on a fleet of Linux servers using timedatectl and chrony. Show commands to set the timezone to UTC, enable and start chronyd/chrony, and verify that the system clock is synchronized. Explain why accurate time is important for distributed systems and log correlation.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.