JN0-102 · Question #160
Which CLI command is used to display output one page at a time?
The correct answer is C. user@router> show interfaces. By default, most show commands in Junos OS CLI display output one page at a time, pausing after each screenful. This default behavior allows users to review lengthy outputs conveniently.
Question
Which CLI command is used to display output one page at a time?
Options
- Auser@router> show interfaces | no-more
- Buser@router> show interfaces | trim
- Cuser@router> show interfaces
- Duser@router> show interfaces | display
How the community answered
(32 responses)- A3% (1)
- B6% (2)
- C88% (28)
- D3% (1)
Why each option
By default, most `show` commands in Junos OS CLI display output one page at a time, pausing after each screenful. This default behavior allows users to review lengthy outputs conveniently.
The `| no-more` pipe option explicitly disables pagination, causing all output to display continuously, which is the opposite of displaying one page at a time.
`| trim` is a pipe option used to truncate leading spaces from output, not to control pagination.
When a `show` command, such as `show interfaces`, is executed without any specific output modification pipes like `no-more`, the Junos OS CLI automatically paginates the output. This means it displays one page at a time, allowing the user to press Space to advance through the lengthy results.
`| display` is a pipe option that shows the configuration in various formats (e.g., `display set`, `display xml`), but it does not control pagination of operational command output.
Concept tested: Junos CLI default output pagination
Source: https://www.juniper.net/documentation/us/en/software/junos/junos-cli/topics/concept/cli-output-options.html
Topics
Community Discussion
No community discussion yet for this question.