Module 1 · Linux: the 20 everyday commands · Lesson 6 of 16
Running programs: ps, top, kill
See what is running, spot the program hogging the computer, and stop it.
In this lesson · about 18 minutes
- List processes with ps and ps aux, and read PID, user and CPU
- Spot the busiest programs with top
- Stop a program with kill, and force it with kill -9 when it ignores you
Key terms
Say the meaning to yourself, then tap a card to check.
Polite first, force second
kill 3150 sends the TERM signal: "please finish up and exit". Well-behaved programs save their work and stop. A stuck program may ignore it. Then kill -9 3150 sends KILL, which the program cannot ignore: the system removes it immediately, without letting it save anything. So always try plain kill first.
You can only stop your own processes. Other users' and the system's processes need sudo, and that is on purpose: stopping the wrong one (like sshd, which lets you log in remotely) can lock you out.
Real top keeps refreshing until you press q. In the practice terminal it shows one snapshot.
Practice terminal · missions
The server is slow: find out why
Sam's website feels slow. Open the Running programs tab in the picture to watch the CPU bars as you work.
Missions 0 of 8
- 1List the processes running in your own terminal.
- 2List every process on the machine.
- 3Open the live leaderboard of busy processes.
- 4Ask the runaway report.py (PID 3150) to stop.
- 5Now ask sync-photos (PID 3377) to stop, politely.
- 6Check whether sync-photos is still running, using ps and grep together.
- 7Force sync-photos to stop.
- 8Try to stop the SSH server (PID 412) without sudo.
Type a command and press Enter. Try help to list commands. Tab finishes names, ↑ repeats.
- ~ (/home/sam)you are here
- documents
- budget-2026.csv
- letters
- thank-you.txt
- meeting-notes.txt
- resume.pdf
- downloads
- installer.zip
- report-final-v2.pdf
- report-final.pdf
- logs
- access.log
- app.log
- old
- app-2026-09.log
- app-2026-10.log
- notes.txt
- photos
- beach.jpg
- cat.png
- trip
- day1.jpg
- day2.jpg
- projects
- website
- index.html
- style.css
- scripts
- backup.sh
- hello.shruns
- todo.md
This picture updates as you type. Changed items flash. runs = executable, a name badge = owned by someone else.
Check your understanding0 of 4 correct
Quiz score: 0 of 4
Written by Noviq Academy in its own words. The practice terminal is a simulation that runs in your browser: it imitates Linux (Ubuntu-style output) and Git closely, but it is not a real computer, and real output can differ slightly. The servers, people, web addresses and GitHub addresses in the labs are made up. Linux is a trademark of Linus Torvalds; Git and GitHub belong to their owners. Read-aloud uses your device's built-in voices.