>_ Course · 35 lessons · approx. 266 minutes

Learn Bash & Terminal

In the terminal you control your computer with short commands: create folders, move files, search texts and chain commands. All exercises run in a mini terminal with a simulated folder – your own computer stays untouched.

  • First steps in the terminal
  • Managing files
  • Searching texts
  • Chaining commands
  • Sorting and counting
  • Columns and characters
  • Search patterns with grep

What you’ll learn

  1. Chapter 1First steps in the terminal – Find your way around, change folders, create and read files.
    Where am I? pwd and ls · Changing folders with cd · Creating with mkdir and touch · Reading and writing: cat, echo and > · Boss: build a project folder
  2. Chapter 2Managing files – Copy, move, rename and delete, and fill files line by line.
    Copying with cp · Moving and renaming with mv · Deleting with rm · Appending with >> · Boss: tidy up the folder
  3. Chapter 3Searching texts – Find information in files with grep, wc, head, tail and find.
    Searching with grep · Counting with wc and the pipe | · Beginning and end: head and tail · Finding files with find · Boss: analyse a log file
  4. Chapter 4Chaining commands – Combine several steps into one sequence with &&, ||, pipes, printf and paths.
    If, then: && and || · Long pipes and ; · Clean output with printf · Relative and absolute paths · Boss: a small report
  5. Chapter 5Sorting and counting – Order lines, remove duplicates and count frequencies – with sort and uniq.
    Ordering lines with sort · Sorting numbers correctly: sort -n · Removing duplicate lines: uniq · Counting frequencies: uniq -c · Boss: the top list
  6. Chapter 6Columns and characters – Cut out CSV columns, skip header lines, sort by a column and replace characters.
    Cutting out columns: cut · Skipping the header line: tail -n +2 · Sorting by a column: sort -t -k · Replacing characters with tr · Boss: evaluating a CSV
  7. Chapter 7Search patterns with grep – Count matches, find line starts and ends, character classes and several patterns at once.
    Counting matches: grep -c · Start and end: ^ and $ · Character classes: [0-9] and the dot · Several patterns: grep -E · Boss: a log report

Final project: Your project folder

Create a complete project folder in the mini terminal and write a small report.

How it works

Every lesson starts with short explanation pages. Then you practise with multiple-choice questions, fill-in-the-gap tasks, putting code in order and writing your own code – with hints and instant feedback. Free, without ads, on phone, tablet and PC.

Learn Bash & Terminal now