Redirection and text processing · Question 7 of 12

What does the | character between two commands do?

1 answer is correct. Easy Created with AI

Show answer

Answer

  • A The output of the first command becomes the input of the second

Explanation

This is a pipe: in ls | wc -l, wc reads the output of ls. Continuing only on failure is done with || instead.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications