Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Mac Terminal from Scratch: Command Line for Beginners
Rating: 4.4 out of 5(14 ratings)
3,355 students

Mac Terminal from Scratch: Command Line for Beginners

Use the macOS Terminal with confidence: files, find, grep, pipes, permissions, sudo, processes, sed, awk and aliases
Created byVitalii Shumylo
Last updated 9/2026
English
English [Auto],

What you'll learn

  • Work with the prompt, the shell window and the profile, and repeat commands
  • Copy, move, rename and remove files and directories
  • Read and change file permissions, and gain administrative privileges with sudo
  • Look at processes and jobs, explore them with top and understand process states

Course content

5 sections • 38 lectures • 3h 0m total length
  • Working with Prompt3:59

    Explore the Mac terminal from scratch, mastering the command line, prompts, and cursor. Learn bash vs zsh prompts, home directory, root indicators, and nano usage.

  • Shell Window4:22

    Switch your shell in System Preferences, unlock with your password, and note Catalina defaults to Z shell; resize the terminal window and use multiple windows and tabs.

  • Profile2:40

    Learn to customize terminal profiles by duplicating themes, editing background colors, fonts, text and cursor, adjusting window size, and setting a default.

  • Current Working Directory5:30

    Learn to identify your current directory with pwd, list contents with ls (including -l and -h for details), and reuse commands via history while navigating paths.

  • Repeating Commands2:47

    Repeat the previous command with two exclamation points, optionally adding arguments or sudo for privileges. Find text with command-F, navigate with command-G, and cancel with backspace, control-C, or command-period.

  • Working with Directories6:15

    Navigate directories with the Mac terminal using cd, relative and absolute paths, and learn to move, list contents, and reference folders like home, library, and preferences.

  • Tab Completion2:53

    Learn tab completion to speed typing on the command line by auto-filling file and directory names; single matches auto-fill, while multiple matches show options and support path completion.

  • Finding Files5:05

    Learn to find and locate files in the Mac terminal, using find and locate with case settings, wildcards, and sudo, plus updating the locate database for speed.

  • Working with Commands4:08

    Learn to read and navigate text files in the Mac terminal using less, cat, tail, and head to view beginnings, ends, and intermediate content.

Requirements

  • A Mac to follow along on
  • No Terminal experience needed

Description

The Terminal is the fastest way to do many things on a Mac, and it is the first step towards Linux, development and DevOps. This course starts at the prompt and builds up, so you finish able to move around, find things, change them and keep control of what is running.

What the lectures cover

Besides the main topics, you also work through: Check and change your working directory, and use tab completion; Find files in many ways; Search with grep and wc, redirect output and use pipes; Chain commands, and use sed and awk; Save time with history and aliases, and edit with Vim in eight parts.

Inside the course

The course is organised into these sections: Getting Started; Working with Files; Processes and Scheduling. Essential Shell Tools; Woking with VIM. Lectures you will find include: Working with Prompt; Current Working Directory; Working with Directories; Working with Commands; Gaining administrative privileges with sudo command; Searching the needed info with grep&wc; Cat and output redirection; Processes and jobs; Exploring all running processes with top command; Understanding process states; Sed and awk.

The course runs about 3 hours in 38 lectures. It is a beginner course focused on the macOS Terminal, so it does not cover shell scripting in depth or specialised developer tools. The commands are largely the same on Linux, which makes this a useful first step if you plan to move into Linux or DevOps later. Short lectures let you try each command straight after watching it.

Who this course is for:

  • Mac users who have never opened the Terminal
  • Mac users who want to level up their Terminal skills
  • Students planning to move to Linux or development
  • Beginners who want a first step towards DevOps