nerdexam
Linux_FoundationLinux_Foundation

LFCS · Question #838

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

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

Submitted by jordan8· Apr 18, 2026Essential Commands

Question

Which of the following commands will print to standard out only the lines that do not begin with # (pound symbol) in the file foobar?

Options

  • A/bin/grep ^# foobar
  • B/bin/grep -v ^# foobar
  • C/bin/grep #$ foobar
  • D/bin/grep -v #$ foobar

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

#grep#regular expressions#file content filtering#command line utilities
Full LFCS PracticeBrowse All LFCS Questions