Start

Home / References

BasicsAbout 3 min, once

Open a terminal

Last checked . Checked against Terminal guide, Open or quit terminal.

In short. A terminal is a plain window where you paste a short line of text and press Enter, and the computer carries it out. On a Mac you open the Terminal app, and on Windows you open PowerShell.

Before you start

You need nothing installed. Terminal comes with every Mac, and PowerShell comes with every Windows computer. Some guides ask you to paste commands that install software, so read the box first and paste only what the guide gives you. For work computers, check your company's rules first (safe use notes).

Steps

Step 1. Open the window

On a Mac, press Command and the space bar together, type Terminal, and press Return. If you prefer to click, open Finder, then Applications, then Utilities, and double-click Terminal.

On Windows, press the Windows key and X together, then choose Windows PowerShell (some computers show Terminal instead, which also works). If that menu does not appear, click Start, type PowerShell, and open Windows PowerShell.

A window opens with a blinking cursor, and that cursor is where everything you paste will go.

Step 2. Paste a command and run it

Copy the command from the box on the page, click inside the terminal window, and paste. On a Mac, paste with Command and V. On Windows, paste with Control and V, or right-click in the window. Then press Return (Mac) or Enter (Windows) to run it.

Some commands show nothing for a minute while they download, so wait until a new line with a blinking cursor comes back.

Step 3. Open a fresh window after installing something

After you install a program, close the window and open a new one with Step 1. A new window picks up the program you just installed, and an old one does not.

Check it worked

Type this and press Return or Enter:

echo hello

The window answers with the word hello on the next line. That tells you the terminal is open and takes commands.

If something goes wrong

  • Windows shows C:\Users\YourName> without PS at the start. You opened the older Command Prompt. Close it and open Windows PowerShell with Step 1, because the commands in these pages are written for PowerShell.
  • Paste does nothing on Windows. Right-click inside the window once, which pastes your copied text.
  • You pasted something by mistake. Press Control and C to cancel, then close the window. Nothing runs until you press Return or Enter.
  • The window looks frozen. Many commands print nothing while they work, so give it a minute before you close it.
  • You want to leave. Type exit and press Return or Enter, or just close the window.

Used in

Get your first win this week.

One minute. Three guides picked for your job.

Start my first win