Module lessons (1/2)
Managing processes (ps and kill)
List active system processes using ps aux and terminate them using kill and killall.
What you'll learn in this lesson
- Understand that each command you launch becomes a process identified by a unique PID managed by the kernel.
- Inspect the full list of active processes and resource consumption via
ps aux. - Kill blocked processes by consciously choosing between
kill(SIGTERM 15),kill -9(SIGKILL 9), andkillall.
Overview
Each program or script launched on the server lives in memory as a process with a unique identification number: the PID (Process ID). Monitoring and signaling processes allows you to unblock crashed services without rebooting the machine.
Without numeric options, kill sends SIGTERM (15), allowing databases, web servers, or scripts to close open files and complete ongoing transactions.
Sections covered in this lesson
- 1Table of commands and termination signals
- 2Progressive examples
- 3Practical exercises
- 4Quick check
Unlock "Managing processes (ps and kill)" and the full Linux Terminal curriculum
List active system processes using ps aux and terminate them using kill and killall.
Unlock all 5 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.
- Instant access to all advanced modules in Linux Terminal plus 17 more courses
- Hands-on browser exercises with automated test suites and solutions
- 14-day money-back guarantee processed via Paddle.com
14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.