nerdexam
Linux_FoundationLinux_Foundation

LFCS · Question #812

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

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

Submitted by hans_de· Apr 18, 2026Essential Commands

Question

Which of the following commands will reduce all consecutive spaces down to a single space?

Options

  • Atr '\s' ' ' < a.txt > b.txt
  • Btr -c ' ' < a.txt > b.txt
  • Ctr -d ' ' < a.txt > b.txt
  • Dtr -r ' ' '\n' < a.txt > b.txt
  • Etr -s ' ' < a.txt > b.txt

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

#tr command#text processing#command line utilities
Full LFCS PracticeBrowse All LFCS Questions