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

Explain Unix file permissions for files and directories. Describe the meaning of rwx for user, group, and others, explain numeric octal notation such as 0755 and 0640, and show how chmod u+x differs from chmod 755 with an example scenario for each.

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.

HardTechnical
17 practiced

Implement (or describe well-structured pseudocode for) a robust Python program that runs as a systemd service and detects when a cloud persistent disk has been resized by the provider. The program should safely resize partitions (if present), grow LVM PVs, extend LVs, and grow ext4/XFS filesystems with idempotency, logging, error handling and a dry-run mode. Describe how you would test this tool before fleet rollout.

MediumTechnical
17 practiced

As the Systems Administrator, create a new user 'alice' with UID 1500, primary group 'developers', and home directory /home/alice. Set an initial password, configure password aging so it expires periodically, and demonstrate how to lock and unlock the account. Explain where password aging information is stored on the system and how you would inspect it for an existing user.

MediumTechnical
19 practiced

Explain the different systemd Service Type= options (simple, forking, oneshot, notify, dbus) and the implications each has on PID tracking, ExecStart behavior, and restart semantics. Provide guidance on which to choose for a classic daemon, a forking sysv-style init script, and a modern systemd-native service.

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.