The command line is a text-based way to control your computer. Instead of clicking icons and menus, you type commands.

On Mac, you access the command line through an app called Terminal.

Command Line vs GUI

GUI (Graphical) Command Line
Click icons and menus Type text commands
Visual feedback Text feedback
Limited to what's in menus Unlimited possibilities
Easy to discover Need to know commands
Good for simple tasks Better for complex/repetitive tasks

Both do the same things - they're just different interfaces to your computer.

What Can You Do With It?

Everything you do in Finder, you can do faster in the command line:

  • Navigate folders
  • Create, copy, move, delete files
  • Search for files and text
  • Install software
  • Run scripts and programs
  • Connect to remote servers
  • Automate repetitive tasks

Plus things you can't easily do in Finder:

  • Batch rename hundreds of files
  • Find files by content, size, or date
  • Chain operations together
  • Schedule tasks to run automatically

Why People Use It

Speed: Once you know the commands, typing is faster than clicking through menus.

Power: Some things simply aren't available through the GUI.

Automation: You can save commands as scripts and run them repeatedly.

Remote access: When connecting to servers, command line is often the only option.

What It Looks Like

When you open Terminal, you see something like:

yourname@mac ~ %

This is the prompt. It's waiting for you to type a command.

You type a command:

ls

Press Enter, and it runs:

Desktop    Documents    Downloads    Pictures

That's it. You gave a command, the computer responded.

Common Misconceptions

"It's only for programmers" - Anyone can learn the basics. You don't need to code.

"It's dangerous" - It's as dangerous as any tool. Learn what commands do before running them.

"It's outdated" - It's been around for decades because it works. It's not going away.

"I'll break my computer" - Unlikely with normal commands. The dangerous ones require extra confirmation.

Terminal vs Command Line vs Shell

These terms are related but different:

Term What it means
Command line The text-based interface concept
Terminal The app that provides the window
Shell The program that interprets your commands (zsh, bash)

On Mac, you open Terminal (the app), which runs a shell (zsh by default), and you type at the command line.

Getting Started

Open Terminal:

  1. Press Command + Space
  2. Type "Terminal"
  3. Press Enter

Try a simple command:

pwd

This shows your current location. You just used the command line.


Keep Learning

The command line seems intimidating until you learn a few basics. Then it becomes a superpower. The free course teaches you what you actually need.

Check it out at Mac Terminal for Humans.