JN0-106 ยท The Junos CLI and configuration model
Junos CLI help, completion and output filtering
Question mark help, space and tab completion, command history editing, and pipe filters such as match, except, count, find, last, no-more and display set.
Key points
- ?: lists valid next words with short descriptions.
- Space and Tab: complete a command or keyword; arrow keys recall history.
- Pipe filters: match keeps lines fitting a regular expression, except drops them.
- find: starts output at the first match.
- count: shows the number of lines; last N: shows the tail.
- no-more: turns off paging; display set: prints configuration as set commands.
Practice questions
What does typing a question mark after a partial command do?
- Lists the valid next words with short descriptions
- Executes the partial command as typed
- Shows the previous commands you entered
- Opens the full manual page for the command
Show answer
Answer: A. Lists the valid next words with short descriptions
The ? lists the possible next keywords with descriptions and does not run anything. It is not history or a manual page.
Which pipe filters take a regular expression as their argument?
- match
- except
- find
- count
- no-more
Show answer
Answer: A. match, B. except, C. find
match, except and find all work on a pattern. count and no-more take no pattern.
The filter '| except root' keeps only the lines that contain the word root.
Show answer
Answer: False
False. except hides matching lines; match is the filter that keeps them.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
