1. Why do we need the terminal?
If you are used to graphical apps, the terminal can feel strange. But most AI coding tools run from the terminal. You need it when you run opencode, execute Python code, create folders, or check whether something is installed.
The goal of this post is simple.
- Open the terminal.
- Check where you are.
- See what is inside the current folder.
- Move to another folder.
- Create a new folder.
If you know only these four things, you can create the myproject01 folder in the next post.
2. New terms in this post
- Terminal: a window where you type commands
- CLI: a program controlled with text commands
- Command: a short instruction you type to tell the computer what to do
- Path: an address that shows where a folder or file is located
3. Open the terminal
Windows
Windows includes Command Prompt (cmd) and Windows PowerShell by default. For this series, PowerShell 7 (pwsh) is the recommended choice. Older Windows PowerShell 5.1 can sometimes break Korean text or colors, so installing the newer version is easier in the long run.
Choose one of these installation methods.
- Search for
PowerShellin the Microsoft Store and install it. This is the easiest method. - Type
winget install Microsoft.PowerShellin a terminal. This installs it with one command. - Download the latest installer from the official PowerShell release page.
After installation, you will see a new app named PowerShell 7 or pwsh in the Start menu. When this series says "open the terminal" on Windows, open PowerShell 7.
This series does not cover deeper environments such as WSL. PowerShell 7 is enough for the beginning.
After installation, press Win + R, type pwsh, and press Enter. PowerShell 7 will open. If that does not work yet, type wt to open Windows Terminal.
macOS
On macOS, you can use the built-in Terminal app.
Press Cmd + Space, type Terminal, and press Enter. Spotlight will open Terminal.
4. First command pwd: where am I?
When the terminal opens, you will see a blinking cursor. That means it is ready for input.
The first command tells you your current location.
pwd means "print working directory." In simple words, it asks, "Which folder am I standing in right now?" It works on both Windows PowerShell 7 and macOS.
💬 댓글
이 글에 대한 의견을 남겨주세요