What it is
A process is a running program with an identity, memory, and access to operating-system resources. A service may contain several processes and depend on files, network sockets, credentials, and other services. A running process is not proof of a working user journey.
Why you need it
Understanding these dependencies lets you investigate an outage by evidence rather than restarting everything. CPU, memory, disk capacity, and permissions fail in different ways.
How it works
- Identify the affected service and user-visible symptom.
- Inspect its process state and recent errors.
- Check the resource or dependency implicated by that evidence.
- Choose a controlled mitigation and verify the user journey afterward.
Read-only starting points in a Unix-like lab
ps -ef # running processes
df -h # mounted filesystem capacity
ls -l ./ # file ownership and permissions
# Inspect the service logs using your platform’s log tool.Command output and available flags vary by operating system. Run these in your own environment, and redact identities or paths before sharing output. Each command answers a different diagnostic question.
Practice ls -la, chmod, grep | wc, df -h, df -i, du, lsof, and ss -tulnp against five live troubleshooting missions.
Good practices and why
- Start with the actual symptom and a timeline of changes.
- Distinguish availability of the process from availability of its dependencies and the complete request path.
Common mistakes
- Deleting large files without understanding their owner or purpose.
- Treating a restart as proof that the underlying cause was fixed.
Try it yourself
Document the process, configuration, log location, and persistent data for one local development service.
What a successful result looks like
You can name what a restart preserves, what it loses, and one observable signal for each dependency.
0 / 6000 characters · Saved on this device. Do not include passwords or private data.
Check your understanding
Answer the understanding check correctly to record exercise completion.
Related interview practice
These scenarios add constraints and follow-up questions to the concepts you just learned.
Further reading
Selected primary references · reviewed 2026-10-09. Examples are educational; use your framework’s documented integration guidance when building a deployed system.