Courseiva
User Interfaces →mediumMultiple Select

JN0-106 User Interfaces Practice Question

Which THREE pipe modifiers can be used to filter command output? (Choose three.)

⚠ Common exam trap

Test-takers frequently confuse pipe modifiers that change display behavior (like 'no-more' or 'display set') with those that actually filter the output content, leading them to select 'no-more' as a filtering modifier when it only controls pagination.

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

✓

count

In network CLI environments such as Junos, the pipe modifier 'count' (option B) filters command output by returning only the number of lines the preceding command produces, which is a valid way to filter/summarize output. The 'match' modifier (option D) filters output by displaying only lines that match a given regular expression, directly narrowing the returned text. The 'except' modifier (option E) filters output by excluding lines that match a specified pattern, the inverse of match, and is likewise a legitimate output filter. The unmarked options do not belong: 'no-more' (option A) is a terminal display control that disables paging, not a filter, and 'display set' (option C) is a configuration display format command, not a pipe modifier for filtering output.

Answer analysis

Option-by-option breakdown

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

  • ✗

    no-more

    Why it's wrong here

    The no-more pipe modifier disables paging, causing Junos to display the entire command output at once rather than pausing after each screen. It does not exclude, select, or reduce any lines, so it cannot filter output content. Its purpose is purely to control output streaming, which is why it is not considered a filter.

  • ✓

    count

    Why this is correct

    The count pipe modifier computes and displays the total number of lines in the command output, replacing all content with a single integer. This effectively filters out every line's actual data and presents only a summary statistic. It is useful for quick size assessment—e.g., counting routes or interfaces—without viewing individual entries, but it does not selectively include or exclude lines based on a pattern.

  • ✗

    display set

    Why it's wrong here

    The display set pipe modifier changes the output format from the default hierarchical 'show' style to a series of 'set' configuration commands. It is a formatting transformation, not a content filter: it neither removes nor selects lines; it merely represents the same configuration in a different syntax. This modifier is typically used with configuration commands to generate snippets that can be applied directly, but it does not reduce or refine the output.

  • ✓

    match

    Why this is correct

    The match pipe modifier filters command output by displaying only lines that contain a specified regular expression. It acts as an inclusive filter, selecting lines that satisfy the pattern and discarding all others. This is one of the most commonly used filters in Junos to isolate relevant entries, such as interfaces with a particular IP address or routes to a specific prefix.

  • ✓

    except

    Why this is correct

    The except pipe modifier filters out lines that match a specified regular expression and displays only the lines that do not match. It is the inverse of match, acting as an exclusive filter to remove unwanted information from the output. This is useful for suppressing noise—for instance, excluding all lines containing 'up' to focus on downed interfaces or other anomalies.

About these practice questions

Courseiva writes every JN0-106 question from scratch — 326 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 JN0-106 practice question is part of Courseiva's free Juniper Networks 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 JN0-106 exam.