Install your terminal

You have practiced commands in the browser. Now you set up the terminal on your own computer. The commands you learned work the same way, with one wrinkle on Windows that this page handles.

Mac and Linux: you already have one

Both of these are ready as they are. Skip to "Make a folder for your work" below.

Windows: install Git Bash

Windows ships with PowerShell by default. PowerShell is a terminal, but some of the commands you learned behave differently in it, and touch does not exist there. To keep the course examples working as shown, this page installs a different terminal called Git Bash.

Git Bash is a small program that gives Windows the same bash shell that Mac and Linux use. It is bundled with Git, a tool programmers use to track their work. You install both at once.

  1. Go to git-scm.com/download/win and download the installer. Run it and accept the defaults. Git and Git Bash install together.
  2. Open Git Bash. Press the Windows key, type Git Bash and press Enter. A terminal window opens with a prompt that ends in $.

Try pwd and ls. They should behave the same way they did in the practice terminals.

Recall

What program gives Windows the same shell as Mac and Linux?

Show the answer

Git Bash. It is bundled with the Git installer from git-scm.com, and it uses the bash shell.

If you prefer PowerShell or WSL

If you already use PowerShell or WSL and want to stay there, that is fine, but the course examples assume bash. PowerShell handles pwd, ls, cd, mkdir, echo and cat, but not touch, and its tree output looks different. WSL gives you a full Linux shell and works exactly like the course examples. Either way, you are on your own to translate any mismatch you hit.

Make a folder for your work

Programmers keep their work in one place. This course uses two folders, one inside the other:

Make the folders in your terminal:

mkdir -p ~/Projects/python-projects

If you would rather keep your work somewhere else, that works too. Use your own folder wherever the course says ~/Projects/python-projects.

Next: Install Python with uv.