Hands-On LabBeginner

Linux Processes - Listing, Inspecting, and Terminating

List processes with ps, inspect /proc for a setsid sleep, and stop it with kill.

35 minEstimated time
4Guided steps
AutoVerification
IsolatedSandbox
Linux Processes - Listing, Inspecting, and Terminating

Lab overview

A Linux process is a running program with a numeric process ID (PID). ps(1) reports that table by reading /proc. Every process has a parent (PPID). Follow PPID far enough and you reach PID 1, the first process in this PID namespace. On a bare-metal or VM host that ancestor is often systemd. Inside a container it is the container entrypoint. The tree still has one root. setsid(1) starts a program in a new session so it is not a child of the interactive shell. kill(1) sends a signal; the default is TERM.

In this lab, you will list processes with ps, record what PID 1 is named, start sleep 4242 with setsid, inspect that process under /proc, and stop it with kill.

Objectives

By completing this beginner lab, you will be able to:

  • List processes with ps, ps -e, ps -ef, and ps -eo pid,ppid,comm, then follow PPID until PID 1
  • Record the live command name of PID 1 from ps -p 1 -o comm= (container entrypoint, not systemd)
  • Start setsid sleep 4242 &, record its PID, and read /proc/PID/comm, /proc/PID/cmdline, and /proc/self
  • List signals with kill -l, send TERM with kill PID, and confirm sleep 4242 is gone without trusting a recycled PID

Who is this lab for?

This lab is designed for:

  • IT Administrator Foundations learners in Course 1 Stage 2 who can already open a terminal, edit a file in nano, and follow a path under /proc
  • Helpdesk and junior sysadmin students who need to find and stop a process before later troubleshooting labs

Verified against your live environment

An automated validation engine inspects your actual resources and configurations as you work. Completion means the task was performed, not multiple choice, real-world proficiency.

[CHECK] validation_activelive
Inspecting deployed resources...
Verifying configuration state...
✓ Step requirements satisfied

More labs like this

Related reading

PremiumIncluded in Premium
Duration
35 min
Steps
4

Environment

Dedicated VM IDE

Every lab includes

  • Real environment, pre-credentialed
  • Automated checks on every step
  • Isolated sandbox, auto cleanup
  • AI-recommended next steps

Lab curriculum

  1. 01

    Getting Started with the Linux Processes Workspace

  2. 02

    Listing Running Processes and Tracing PID One

    1 automated check

  3. 03

    Starting a Sleep Process and Reading Proc Files

    1 automated check

  4. 04

    Signaling the Sleep Process to Stop

    1 automated check

Skills validated

Files and DirectoriesServer Administration

Not the lab you were looking for?

Browse 200+ hands-on labs across AWS, Azure, Kubernetes, Docker, and cloud security.

Explore the catalog