terminal.cab

Linux Basics

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

Module 4: Pipes and redirection

Connect small commands and send their output where you need it.

Lessons

  1. Steering the streams 10 min
  2. Branching off and passing on 9 min
  3. The 17:45 report Rescue 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 4liste.txt already exists. What happens with ls > liste.txt?

    Check works once you have chosen an answer.

  2. Question 2 of 4In spite of command > out.txt, error messages appear on the screen. Why?

    Check works once you have chosen an answer.

  3. Question 3 of 4You want to see the output and write it to a file, in one run. Which line?

    Check works once you have chosen an answer.

  4. Question 4 of 4What does find . -name "*.tmp" | xargs rm do?

    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 4, Pipes and redirection, 9 commands; the same entries are in the lessons as text