LEARN. PRACTICE. EXPLAIN.
Learning paths & interview practiceP
DevOps / SRE foundations
LESSON 1 OF 3 · ABOUT 15 MINUTES + EXERCISE

What is a process, and what does a service need?

THE IDEA

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

  1. Identify the affected service and user-visible symptom.
  2. Inspect its process state and recent errors.
  3. Check the resource or dependency implicated by that evidence.
  4. Choose a controlled mitigation and verify the user journey afterward.
Shell

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.

Try the in-browser Linux CLI lab

Practice ls -la, chmod, grep | wc, df -h, df -i, du, lsof, and ss -tulnp against five live troubleshooting missions.

Open Linux CLI lab

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.
GUIDED IMPLEMENTATION

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

A process is running but every request fails at the database. What does process uptime establish?

Answer the understanding check correctly to record exercise completion.

PUT THE IDEA UNDER PRESSURE

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.

AlifBay Prep