nerdexam
Linux_FoundationLinux_Foundation

LFCS · Question #120

LFCS Question #120: Real Exam Question with Answer & Explanation

Sign in or unlock LFCS to reveal the answer and full explanation for question #120. The question stem and answer options stay visible for context.

Submitted by viktor_hu· Apr 18, 2026Essential Commands

Question

What output will the following command sequence produce? echo '1 2 3 4 5 6' | while read a b c; do echo result: $c $b $a; done

Options

  • Aresult: 3 4 5 6 2 1
  • Bresult: 1 2 3 4 5 6
  • Cresult: 6 5 4
  • Dresult: 6 5 4 3 2 1
  • Eresult: 3 2 1

Unlock LFCS to see the answer

You've previewed enough free LFCS questions. Unlock LFCS for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#shell scripting#pipelines#read command#while loop
Full LFCS PracticeBrowse All LFCS Questions