Lessons
11What’s running on your computer
0 of 8 tasks

Lesson 11 · about 14 min · 8 tasks

What’s running on your computer

See every running program, stop the ones that are stuck, and find what’s filling your disk.

step 1 of 7

See what’s running

Every program running on a computer is a process, and each one has a number, its PID (process ID). ps on its own lists only the ones started from this terminal:

$ ps
    PID TTY          TIME CMD
   1201 pts/0    00:00:00 bash
   2301 pts/0    00:00:00 ps

Add aux (no dash, an old tradition) to see everything, from every user and every terminal. The columns that matter most:

  • USER: who started it
  • PID: its number, which you need to stop it
  • %CPU and %MEM: how hard it’s working
  • COMMAND: what it actually is

Your turn, in the terminal

  • List every running process
mapfolders appear as you explore
/ …
home/ …
you/◂ you are here
nowList every running process
terminal
Practice terminal. Nothing you do here touches your real computer.
Type help to see what it understands.
you@terminal-mastery:~$