What you’ll learn
- 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 - 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 - 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 - 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 - 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 - 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 - 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.