Home › Blog › Linux interview questions

Linux interview questions

Linux interviews are troubleshooting interviews with vocabulary attached. The recall questions are easy; the ones that matter hand you a broken server and listen to what you type.

The troubleshooting scenarios

"The server is slow"

"The disk is full"

The deleted-but-held-open file is the classic Linux interview question, because it only happens to people who have actually run servers.

Processes, signals and permissions

Networking and files

`ss` or `netstat` to find what is listening, `curl -v` to test an endpoint properly, `dig` for DNS, and tracing a connection failure through DNS, routing, firewall and the listening service in that order. Then text processing - `grep`, `awk`, `sed`, pipes - and finding large files or recent changes with `find`. The container equivalents of much of this are in Docker interview questions.

How deep it goes by level

Whatever the level, say your answers out loud rather than reading them. Most of what candidates lose in a Linux interview is lost between knowing something and explaining it under observation - the method is in how to use AI for interview prep.

Where CoPilot Interview fits

Disclosure: we build an interview assistant, so treat this as a disclosed pitch. CoPilot Interview is a native Windows and macOS app that puts suggested answers on your own screen in about two seconds, across coding, system design and behavioral rounds, with a permanent free tier that needs no credit card.

Frequently asked questions

What are the most common Linux interview questions?

Diagnosing a slow server, handling a full disk including the deleted-but-held-open file case, the difference between SIGTERM and SIGKILL, zombie processes, permission bits, and finding what is listening on a port.

What do you do when df says the disk is full but du does not agree?

A deleted file is still held open by a running process, so the space is not released. Find it with `lsof | grep deleted` and restart or signal the holding process. It is one of the most reliable experience checks in a Linux interview.

What is the difference between SIGTERM and SIGKILL?

`SIGTERM` asks a process to terminate and can be caught, allowing it to flush buffers and clean up. `SIGKILL` cannot be caught and terminates immediately, which risks corrupt state. Always try SIGTERM first and escalate only if it does not respond.

What does a high load average with low CPU usage mean?

Processes are runnable but blocked, most often on disk I/O, since Linux counts uninterruptible sleep in load. Check with `iostat` or `vmstat` rather than assuming a CPU problem - it is a distinction interviewers use to separate experience from recall.

Walk into the round with a second pair of eyes

CoPilot Interview is a native Windows and macOS app that puts suggested answers on your own screen in about two seconds, across coding, system design and behavioral rounds. The free tier is permanent: 15 minutes a day, no credit card.

Try it free