Courseiva
NetworkingmediumMatchingObjective-mapped

LFCS Networking Practice Question

Match each Linux command to its function.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Search text using patterns

Stream editor for text manipulation

Pattern scanning and processing language

Search for files in a directory hierarchy

Build and execute command lines from input

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

grep: search text using patterns

The correct matches are: grep for pattern searching, sed for stream editing, awk for text processing, and find for file searching. Common confusions arise between grep and sed due to overlapping text processing capabilities.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • grep: search text using patterns

    Why this is correct

    grep is used to search text files for lines matching a regular expression pattern.

  • sed: stream editor for filtering and transforming text

    Why this is correct

    sed is a stream editor that performs basic text transformations on an input stream.

  • awk: pattern scanning and text processing language

    Why this is correct

    awk is a scripting language used for pattern scanning and text processing.

  • find: search for files in a directory hierarchy

    Why this is correct

    find searches for files in a directory tree based on criteria like name, type, size.

  • grep: stream editor for filtering and transforming text

    Why it's wrong here

    Incorrect — stream editing is the function of sed, not grep.

  • sed: search text using patterns

    Why it's wrong here

    Incorrect — pattern searching is the function of grep, not sed.

About these practice questions

Courseiva writes every LFCS question from scratch — 507 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This LFCS practice question is part of Courseiva's free Linux Foundation certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LFCS exam.