What’s the Terminal?
A terminal, also known as a command line, console, or shell, is an interactive text-based interface that allows you to type commands to control your computer. Instead of clicking buttons and icons, you type instructions directly. Terminal programs are built into all major operating systems and are essential for software development, system administration, and running command-line tools like Git.
On macOS
macOS includes a built-in terminal application called Terminal.
How to open Terminal on macOS:
- Using Spotlight Search (fastest):
- Press
Cmd + Spaceto open Spotlight - Type “Terminal” and press Enter
- Press
- Using Finder:
- Open Finder
- Go to Applications → Utilities → Terminal
- Using Launchpad:
- Open Launchpad
- Search for “Terminal” in the search bar
Common Terminal commands on macOS:
pwd— Print working directory (shows your current location)ls— List files and folders in the current directorycd <folder>— Change directorymkdir <folder>— Create a new folderrm <file>— Remove a fileopen .— Open the current folder in Finder
On Windows 10 and 11
Windows offers several terminal options:
1. Command Prompt (cmd)
The traditional Windows command-line interface.
How to open Command Prompt:
- Press
Win + R, typecmd, and press Enter - Or search for “Command Prompt” in the Start menu
2. PowerShell (recommended)
A more powerful shell with advanced scripting capabilities.
How to open PowerShell:
- Press
Win + Xand select “Windows PowerShell” or “Terminal” - Or search for “PowerShell” in the Start menu
3. Windows Terminal (recommended for Windows 10+)
A modern terminal application that can run Command Prompt, PowerShell, and other shells in tabs.
How to get Windows Terminal:
- Download from the Microsoft Store (search for “Windows Terminal”)
- Or visit: https://aka.ms/terminal
Common commands on Windows:
cd— Print current directorydir— List files and folderscd <folder>— Change directorymkdir <folder>— Create a new folderdel <file>— Delete a fileexplorer .— Open the current folder in File Explorer
On Windows (<10)
For older Windows versions (7, 8, 8.1):
Command Prompt
How to open:
- Press
Win + R, typecmd, and press Enter - Or search for “cmd” or “Command Prompt” in the Start menu
Note: PowerShell is also available on older Windows versions but may require manual installation or updates. Command Prompt is the most reliable option for these systems.
Tips for using the Terminal
- Tab completion: Press
Tabto auto-complete file and folder names - Command history: Use the Up/Down arrow keys to cycle through previously typed commands
- Copy/Paste:
- macOS:
Cmd + Cto copy,Cmd + Vto paste - Windows (PowerShell/Windows Terminal):
Ctrl + Cto copy,Ctrl + Vto paste - Windows (Command Prompt): Right-click to paste
- macOS:
- Clear the screen: Type
clear(macOS/Linux) orcls(Windows) - Exit/Close: Type
exitor pressCtrl + D(macOS) / close the window