COMMAND-LINE COURSE GUIDE

Command Line Basics for Beginners

A chapter-by-chapter readback of the free course by Beau Carnes on freeCodeCamp.org.

Length45:19
Chapters10
Modules3
Plain Markdown with clickable timestamps — drops into Obsidian, Notion or GitHub as-is.

The course teaches command-line basics through practical file-management tasks in a project directory, including relative paths and the difference between overwriting and appending file content.

Who it's for
Read this guide if
  • You are new to terminals and command-line interfaces.
  • You want to practice navigating folders and managing files.
  • You want to understand basic commands such as pwd, ls, cd, touch, rm, echo, and cat.
Skip ahead if
  • You already use command-line tools comfortably.
  • You are looking for advanced shell scripting or system administration.
  • You need detailed coverage of topics beyond the transcript points, such as searching, replacing, or Git workflows.
In brief
  • Duration: 45 minutes 19 seconds.
  • Chapter count: 10, grouped into 3 modules.
  • Tools: terminal commands including pwd, ls, cd, touch, rm, echo, and cat.
  • Practice context: a geography-game project in the Scrimba environment.
  • Level: beginner; focuses on navigation and basic file operations.

The walkthrough

Each chapter below is our original written explanation of what happens at that moment in the video — a paraphrase, not a transcript. Click any timestamp to jump the player.

Command-line orientation and navigation

0:00

What the command line is for

The command line is a text-based way to interact with an operating system, with names such as Terminal on macOS and PowerShell on Windows. Unlike a graphical interface, it uses typed commands to work with the same files and directories.

5:52

Why developers use the command line

The course introduces command-line uses such as managing files, working with development environments, and automating repetitive tasks. It previews a range of file and directory operations the lessons will practice.

10:21

Check location and list files

Use pwd to see the current directory and ls to inspect its contents. The terminal context also displays the path of the directory being used.

14:48

Change directories and use the parent path

The cd command changes the working directory, while .. refers to its parent. Combining that parent reference with a directory name helps navigate between neighboring locations.

18:21

Locate example files in a project tree

A geography-game exercise asks learners to identify files in different folders and at the project root. The examples reinforce reading directory structure and relative locations.

Creating and removing files and directories

20:41

Create and delete files with paths

The course uses touch to create files and rm to remove them, either in the current directory or at a specified path. Commands such as pwd and ls help check location and confirm the result.

25:27

Make and remove directories

The lesson demonstrates creating directories and removing empty ones with rmdir. It contrasts that with recursive removal for a non-empty directory and verifies the change by listing the contents.

Writing, reading, and copying file content

30:28

Print text and redirect output

The echo command prints text, and redirection sends that text into a file. The lesson distinguishes overwriting existing content from appending new content.

34:05

Build a project file with appended text

In a project exercise, learners create a directory and a team-members file, write an initial description, then append additional lines. The example emphasizes checking the working directory before creating items.

37:31

Read and copy file contents

The cat command displays a file’s contents, while redirecting its output to another filename copies the text there. The lesson also revisits how redirection can overwrite or append.

Moment by moment

TimeWhy it matters
10:21Learn the basic commands for checking the current directory and listing its contents.
15:00See how the parent-directory notation helps move around the file tree.
25:27Understand why removing a non-empty directory requires a different command.
32:55Compare redirecting output to a file with appending to existing content.
37:31Use cat to display file contents and redirect them into a copy.

Do this next

  1. Practice moving through a small folder tree with pwd, ls, cd, and .., checking your location as you go.
  2. Create a test file and directory, then remove them and use ls to verify each change.
  3. Use echo with redirection to write a file, append another line, and inspect the result with cat.

Common questions

What is the command line?

It is a text-based interface for interacting with an operating system using commands rather than graphical icons and clicks.

Which commands are covered in the supplied course points?

The points cover pwd, ls, cd, clear, touch, rm, rmdir, directory creation, echo, cat, and output redirection.

What is the difference between redirection and append redirection?

Redirection replaces existing file content, while append redirection adds content without replacing what is already there.

Can rmdir remove a directory that contains files?

No. The lesson says rmdir works on empty directories; it demonstrates recursive removal for a non-empty directory.

Spot a mistake?

Notice an error or a detail that needs correction? Please report it to us; every summary is hand-checked against the video, and your note helps us improve it.

More course guides