terminal.cab

Linux Basics

guestLevel 1Badges and progress0/100 XP, XP to the next levelStreak0

Module 3: Text tools

Search, count, rewrite and evaluate text in files and logs.

Lessons

  1. Finding lines, finding differences 10 min
  2. Sort and count 10 min
  3. Changing text with sed 9 min
  4. Evaluating columns with awk 8 min
  5. Who is hammering the API? Detective 9 min

Module check

Four questions on this module. Once you have answered each one correctly, the module counts as passed.

  1. Question 1 of 4You want all lines with ERROR from app.log. Which line?

    Check works once you have chosen an answer.

  2. Question 2 of 4And all lines that do not contain DEBUG?

    Check works once you have chosen an answer.

  3. Question 3 of 4Why does sort come before uniq in ... | sort | uniq -c?

    Check works once you have chosen an answer.

  4. Question 4 of 4How many lines does access.log have?

    Check works once you have chosen an answer.

Cheat sheet

The most important command lines of this module on one A4 page, black and white, to print or keep on your phone.

Cheat sheet module 3, Text tools, 18 commands; the same entries are in the lessons as text