C.W.K.
Stream
Quiz · 5 questions

🔧 Input, Output and Pipes

Streams, redirection, pipes, sort, uniq, xargs, tee

Level 0Window Tourist
0 XP0/95 lessons0/14 achievements
0/100 XP to next level100 XP to go0% complete

Quiz

01What does cmd 2>&1 > out.log actually do?
Hint
&1 means "wherever stdout currently points" — order changes the answer.
02Why is uniq alone usually wrong?
Hint
uniq only sees lines that touch each other.
03What does set -o pipefail change?
Hint
Without it, an early-stage failure can be masked by a later success.
04What's the safe pattern to feed find results to xargs when filenames may contain spaces?
Hint
Whitespace in filenames breaks word-splitting; NUL never occurs in a filename.
05What does tee do?
Hint
T-junction — one input, multiple outputs.
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.