Processes and jobs

Everything running on your device is a process with an id. Being able to list them and stop the right one is the difference between a stuck terminal and a working one.

4 questions 1 task Read the lesson

Questions

Each one is marked as you go, and the explanation arrives straight after, which is the part worth reading.

4 questions, marked as you go.

1 What is a process?
2 In the output of ps, what is the PID column for?
3 Why is it a bad idea to put a password on a command line?
4 What does a trailing & do to a command?

Tasks

These need your own device. Run the command in Termux, then paste what it printed. The marking looks at what the output means, so spacing, version numbers and ordering do not matter. If you have not installed anything yet, the lesson covers the setup.

List what is running

This lists the processes your account can see, with the command that started each one.

Run this in Termux On your own device. Nothing on this page executes it. The command runs in your terminal, and this box only reads what you paste back.

ps
Marking your own work Both halves of this are checked in your browser, with no server involved, so nothing stops you from pasting output you did not run. The tasks are written so that the easiest way to pass one is to actually do it and read the result, which is the whole intention.

All sets Read the lesson