Linux & Servers interview questions

Permissions, processes, logs, disk and memory problems, networking checks and the “server is down” drill.

Readiness: 0 of 8 nailed

How to use this page: 1. Read a question2. Type your answer3. Check with AI4. Open the model answer5. Timed drill when you’re 70% ready

Files

FoundationConcept

What does chmod 755 mean? Why is chmod 777 bad?

Troubleshooting

Mid-levelReal-world scenario

The website is down. You SSH into the server. What do you check, in order?

JuniorIt’s broken: why?

df -h shows the disk is 100% full. How do you find what’s using it?

du -h --max-depth=1 / 2>/dev/null | sort -h | tail
find /var/log -type f -size +100M
journalctl --vacuum-size=500M
Mid-levelIt’s broken: why?

Load average is 30 on an 8-core server. How do you find the cause?

Processes

JuniorConcept

How do you find and stop a process using port 3000?

JuniorConcept

How do you schedule a job with cron?

Everyday commands

FoundationWrite it by hand

Find the 10 IPs with the most requests in an nginx access log.

Security

FoundationConcept

How do SSH keys work, and why are they better than passwords?

Also prepare