Stopping Rogue Processes (kill)
Concept & Overview
Imagine an app on your phone freezes up, completely locking your screen, and you need to force-close it to get things running smoothly again. In Linux, we stop misbehaving or frozen programs by using the kill command followed by the program's Process ID (PID).
- Running kill 1234 sends a polite request asking the program to save its work and close down.
- If it is frozen and ignores the polite request, kill -9 1234 forces the operating system to shut it down instantly. We have a runaway process with PID 9999 hogging all our CPU right now—let's shut it down!
9999 by running kill 9999.Command Syntax Reference
| Command / Syntax | Description |
|---|---|
kill 9999 | Terminate process with PID 9999 |
Verification Objectives
These conditions will be automatically verified when you run commands inside the interactive terminal simulator:
- ○Stop the rogue process with PID 9999
Ready to complete Quest 63?
Test your skills live in the browser terminal with an emulated Linux filesystem, real-time command evaluation, and instant step-by-step hints.