Tame Rogue Processes
ps, top, kill, nice — stop a runaway process eating CPU in production.
A intermediate Linux challenge worth 10 points. Solve it hands-on in a real Linux environment in your browser - no local setup, no fake shells.
The Challenge
Scenario: INCIDENT. The production API is at 95% CPU. A developer forgot to stop a stress test.
Your tasks:
- Find the process named "stress_test" using
ps auxorpgrep - Kill it gracefully with SIGTERM (kill -15 or just kill)
- If it does not stop within 5 seconds, force-kill with SIGKILL (kill -9)
- Write the PID you killed to /tmp/killed_pid.txt
- Confirm the process is gone
Commands to learn: ps aux, pgrep, top, kill, kill -9, pkill
Run check when done.