Which Terminal to Open — and Why Windows Needs Care
Last time: a command is work described in words, and that is why it can be saved and repeated. Now we open the window to type in. This part is short, but it is the one that decides whether the next ten parts work on your machine.
Three words worth separating
- The terminal is the window. It shows text and takes your typing. That is all it does.
- The shell is the program inside it that reads your command and runs it. Bash and PowerShell are two different shells.
- The prompt is the text sitting there waiting for you. It usually tells you which shell you are in.
People use "terminal" for all three and it rarely matters. It matters today, because the choice you are about to make is a shell, not a window.
The Windows trap
Windows opens PowerShell by default. PowerShell is a good shell — but it has commands named exactly like the Unix ones, doing something different underneath. I checked this on my own machine while writing this course: ls, pwd, cat, rm and curl all exist there, as aliases for completely different programs.
What to open, on your machine
Pick your tab below. Run nothing else from it today — we only want the window open and the right shell inside it.
winget install --id Git.GitHow to tell where you are
The prompt tells you. If it starts with PS, like PS C:\Users\You>, you are in PowerShell — not what we want. In Git Bash you will see your username and a dollar sign at the end. On macOS and Linux you will also see a dollar sign. That dollar sign is the sign you are in the right place.
The window is open and it is empty. Which raises the obvious question: what is the first thing worth typing into it?