Linux Processes - Listing, Inspecting, and Terminating
List processes with ps, inspect /proc for a setsid sleep, and stop it with kill.

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, andps -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 withkill PID, and confirmsleep 4242is 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.
More labs like this
Linux Shell Basics - Commands, Paths, and Manual Pages
Open a Linux terminal, find your user and home, read the ls manual, and create, move, and link files.
Deploy Linux VM with Networking using Azure CLI Script
Automate Azure infrastructure deployment with Bash scripting. Create a reusable script to deploy a Linux VM with networking using Azure CLI commands.
Deploying a Linux VM in Azure using Terraform
Learn to deploy an Azure Linux VM using Terraform while exploring advanced concepts like complex variables, data sources, dependencies, and multi-file configurations.
Related reading
Environment
Every lab includes
- Real environment, pre-credentialed
- Automated checks on every step
- Isolated sandbox, auto cleanup
- AI-recommended next steps
Lab curriculum
- 01
Getting Started with the Linux Processes Workspace
- 02
Listing Running Processes and Tracing PID One
1 automated check
- 03
Starting a Sleep Process and Reading Proc Files
1 automated check
- 04
Signaling the Sleep Process to Stop
1 automated check
Skills validated
Not the lab you were looking for?
Browse 200+ hands-on labs across AWS, Azure, Kubernetes, Docker, and cloud security.