All jobs / DevOps / SRE / cloud / Linux

DevOps / SRE / cloud interview question · 1–3 years

A service fails to start with “address already in use” on port 8080. How do you find out what holds it?

The strongest answer

`ss -ltnp` (or `lsof -i :8080`) shows the listening socket and the owning PID; then I decide whether it is a stale copy of the same service or something that belongs there

Why it works

Right — the socket table tells you exactly who listens; guessing from process names does not.

What a good answer covers

Answers that fall short

Who gets asked this

More Linux questions