nerdexam
Linux_FoundationLinux_Foundation

LFCS · Question #802

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

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

Submitted by tarun92· Apr 18, 2026Essential Commands

Question

Which grep command will print only the lines that do not end with a / in the file foo?

Options

  • Agrep '/$' foo
  • Bgrep '/#' foo
  • Cgrep -v '/$' foo
  • Dgrep -v '/#' foo

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#command-line utilities#text filtering
Full LFCS PracticeBrowse All LFCS Questions