JN0-106 User Interfaces Practice Question
Which TWO statements about the Junos CLI are correct?
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
✓
The pipe character (|) can be used to filter command output.
Option B is correct because the pipe character (|) in the Junos CLI is used to filter or manipulate the output of show commands, for example with match, except, find, count, or display set. Option C is correct because from configuration mode the run command (or its abbreviation run) executes operational mode commands without leaving configuration mode, e.g., run show interfaces terse. Option A is incorrect because commit confirmed applies the candidate configuration temporarily and automatically rolls back after 10 minutes unless confirmed with a second commit, so it does not save permanently. Option D is incorrect because set cli screen-length 0 disables paging of output, not command-line editing features. Option E is incorrect because rollback 0 loads the currently active committed configuration, while rollback 1 reverts to the previous committed configuration.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The `commit confirmed` command saves the configuration permanently.
Why it's wrong here
The `commit confirmed` command does not save the configuration permanently. Instead, it performs a temporary commit that remains active for a default timeout of 10 minutes, after which Junos automatically reverts to the previous configuration unless the commit is explicitly confirmed with a standard `commit` command. This mechanism is designed for safe remote changes, ensuring that if connectivity or validation fails, the device returns to a known-good state.
- ✓
The pipe character (|) can be used to filter command output.
Why this is correct
The pipe character (|) is a fundamental Junos CLI feature that enables filtering and manipulating command output. You can use it with keywords such as `match`, `except`, `find`, `count`, `display`, and `save` to refine displayed data. For example, `show interfaces | match ge-0/0/0` shows only lines containing that interface name, making it an essential tool for quickly extracting relevant information from verbose operational output.
- ✓
The `run` command allows operational mode commands to be executed from configuration mode.
Why this is correct
The `run` command is specifically used in configuration mode to execute operational mode commands without manually switching modes. For instance, a user in configuration mode can type `run show interfaces terse` to view interface states while still remaining in configuration mode to make further edits. This convenience avoids the need to exit to operational mode (`exit` or `top`) and re-enter configuration mode, speeding up troubleshooting and configuration workflows.
- ✗
The `set cli screen-length 0` command disables command-line editing features.
Why it's wrong here
The `set cli screen-length 0` command does not disable command-line editing features; it disables paging or pagination of output. Setting screen-length to 0 means the terminal will not pause after each screenful of output, allowing the full output to scroll continuously. Command-line editing features, such as keyboard shortcuts, history navigation, and emacs/vim editing modes, are controlled separately via `set cli` options like `set cli editing-mode` or the terminal's line-editing behavior.
- ✗
The `rollback 0` command reverts to the previous committed configuration.
Why it's wrong here
The `rollback 0` command does not revert to the previous committed configuration; it loads the current active committed configuration into the candidate configuration. The rollback number refers to an index of previous configurations in the rollback buffer, with `rollback 0` being the most recent committed configuration, `rollback 1` being the one before that, and so on. To revert to an earlier state, you would use `rollback 1`, `rollback 2`, etc., depending on how far back you need to go.
About these practice questions
This JN0-106 question is part of Courseiva's 326-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
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.