Getting started with Termux

Termux gives you a Linux environment inside an Android app, with its own filesystem under the com.termux package. These questions check that you know where you are and what to do first.

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 You have just installed Termux and opened it. What should you do before installing any packages?
2 What does the tilde, ~, mean in a path?
3 You are in /data/data/com.termux/files/home and run cd .. Where are you now?
4 Which command prints the directory you are currently in?

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.

Show where you are

This prints the directory you are currently in. It is a single line, and it tells you something specific about how Termux is put together.

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.

pwd
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