Streams, pipes and redirection
Lesson 4 of 8 in objective 103. GNU and Unix commands, part of LPIC-1 Exam 101-500.
- Objective
- 103. GNU and Unix commands
- Share of the exam
- 43.33% (the whole objective)
- Questions in this lesson
- 4
- Signed for by a person
- 0
Partly checked. None of the 4 questions here has been read against the cited source by a person. 4 questions have been checked against their cited clause by an automated pass — which is not the same thing, and is not a signature.
Only questions a person has signed for are used in mock exams here. That is the whole difference between the two kinds of checking above.
Questions in this lesson
- Select the TWO true statements about output redirection in bash. machine-checked
- The pipeline `find . -name '*.tmp' | xargs rm` fails on file names that contain spaces, because xargs treats each word as a separate argument. Which form handles those names correctly? machine-checked
- Inside a script you want to feed several lines of text that are written directly in the script, ending at a marker word, to a command's standard input. Which redirection operator introduces that construct? machine-checked
- Type the complete command line that runs `dmesg` so that its output appears on the terminal and is written to the file boot.log at the same time. Use a pipe and the standard tool for this. machine-checked
Drill this lesson
A lesson is one sitting: the trainer draws a short run from these questions alone and spaces the ones you get wrong.
Practise Streams, pipes and redirection