All courses
Beginner 6 hours Free

Terminal Basics: Your First Step as a Developer

Learn to use the terminal from zero: move between folders, create, copy and delete files, search text, combine commands with pipes, permissions and your first script. Practice in a Linux terminal inside your browser and meet the Windows equivalents.

Course badge Terminal Basics Finish every lesson to earn it.
Terminal Basics: Your First Step as a Developer

Course content

Module 1

Getting started

3 lessons
1

What is the terminal?

What the terminal is, why developers use it, how to open it on Linux, macOS and Windows, and your first command.

15 min Free
2

Your first commands

echo, date, whoami, hostname and uname, how to clear the screen, the history, Tab completion, canceling with Ctrl+C and what to do with errors.

20 min Free
3

Anatomy of a command and how to get help

The parts of a command (name, options and arguments), why spaces and quotes matter, and how to read the help with --help, man, type and which.

20 min Free
Module 2

Moving around the file system

3 lessons
4

Folders and paths: where am I?

How files are organized on Linux, what a path is, the difference between absolute and relative paths, and the /, ~, . and .. shortcuts you'll use all the time.

20 min Free
5

See what's there: ls and tree

List a folder's contents with ls, see hidden files, the long format with sizes and dates, sort by date and see the whole tree with tree.

20 min Free
6

Moving around with cd

Change folders with cd: go in, go up with .., go home with ~, go back to the previous folder with cd -, use Tab and handle names with spaces.

20 min Free
Module 3

Files and folders

4 lessons
7

Creating folders and files

Create folders with mkdir (and many at once with -p and braces), create empty files with touch, write a line with echo and >, and pick good names.

20 min Free
8

Copying, moving and renaming

Copy files with cp, copy whole folders with cp -r, move and rename with mv, and how not to overwrite files by accident with -i.

20 min Free
9

Deleting carefully: rm and rmdir

Delete files with rm, empty folders with rmdir and whole folders with rm -r. Why there's no trash can, how to ask for confirmation with -i and the commands you should never run.

15 min Free
10

Wildcards: many files at once

Use *, ? and [ ] to work with many files in one go: list, copy, move and delete by extension or pattern, and check first with echo.

20 min Free
Module 4

Reading, editing and searching

3 lessons
11

Reading files: cat, less, head, tail and wc

Show file contents with cat, read long files with less, see the beginning or the end with head and tail, and count lines and words with wc.

20 min Free
12

Editing files with nano

Open, edit and save files without leaving the terminal with nano, its most important shortcuts, and what to do if you end up inside vim by accident.

15 min Free
13

Finding text and files: grep and find

Find lines containing a word with grep (ignoring case, with line numbers, counting or across whole folders) and find files by name or type with find.

25 min Free
Module 5

Combining commands

2 lessons
14

Redirections: saving output to files

A command's three streams (input, output and errors) and how to redirect them: > to save, >> to append, 2> for errors, 2>&1 to merge everything, /dev/null to discard and < to read from a file.

25 min Free
15

Pipes: joining commands with |

Connect one command's output to another's input with |, sort with sort, remove duplicates with uniq, cut columns with cut and chain commands with ;, && and ||.

30 min Free
Module 6

Next steps

3 lessons
16

Variables, the PATH and shortcuts with alias

What environment variables like HOME, USER and PATH are, how to create your own, the difference between double and single quotes, why command not found happens and how to create shortcuts with alias and ~/.bashrc.

25 min Free
17

Permissions, sudo and your first script

Read the rwx permissions in ls -l, change them with chmod, use sudo responsibly and write your first bash script: shebang, chmod +x, ./script.sh and arguments.

30 min Free
18

The terminal on Windows (and what's next)

PowerShell, CMD, WSL and Git Bash: what each one is, the PowerShell equivalents of the commands you learned, a PowerShell terminal to practice in and how to get Windows ready for the next courses.

25 min Free

Build your digital presence

Start today: write to us and we’ll reply within 24 hours.