Bitzu

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.

Source: https://www.juniper.net/documentation/us/en/software/junos/cli/topics/topic-map/filtering-operational-command.html

Practice questions

Single choice

What does typing a question mark after a partial command do?

  1. Lists the valid next words with short descriptions
  2. Executes the partial command as typed
  3. Shows the previous commands you entered
  4. 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.

Select all that apply

Which pipe filters take a regular expression as their argument?

  1. match
  2. except
  3. find
  4. count
  5. 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.

True or false

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.

Download on the App StoreGet it on Google Play

More JN0-106 topics in this module