Related Documentation
- EX, J, M, MX, PTX, T Series
- Example: Controlling the CLI Environment
- Controlling the Junos OS CLI Environment
Setting the Junos OS CLI Screen Length and Width
You can set the Junos OS command-line interface (CLI) screen length and width according to your specific requirements. This topic contains the following sections:
Setting the Screen Length
The default CLI screen length is 24 lines. To change the length, use the set cli screen-length command:
Setting the screen length to 0 lines disables the display of output one screen at a time. Disabling this UNIX more-type interface can be useful when you are issuing CLI commands from scripts.
Setting the Screen Width
The default CLI screen width is 80 characters. To change the width, use the set cli screen-width command:
Understanding the Screen Length and Width Settings
The cli screen-length and cli screen-width settings in combination with each other and the size of the telnet or console window determine the extent of output displayed before each –more– prompt appears.
The following examples explain how the cli screen-length and cli screen-width values determine the appearance of the output:
- When the CLI screen width is set to the default value (80 characters) and the cli scree length to 10 lines, the --more-- prompt appears on the tenth line of the output.
- When the CLI screen width is set to 20 characters and the CLI screen length is set to 6 lines in a telnet or console window that is wide enough to contain 40 characters, the --more-- prompt appears on the fourth line of the output. Here each one of the first two lines has more than 20 characters and is counted as two lines. The third line contains the fifth line of output, and the fourth line contains the --more-- prompt, which has to appear in the sixth line as per the setting.
![]() | Note: If you have inadvertently set the CLI screen width to a lower value that does not allow you to see the commands that you are typing, reset the CLI screen width with a higher value by entering the set cli screen-width command. |
![]() | Tip: If you are not able to see the command that you are entering, type the command in a text editor and copy it at the command prompt. |
Related Documentation
- EX, J, M, MX, PTX, T Series
- Example: Controlling the CLI Environment
- Controlling the Junos OS CLI Environment
Published: 2012-11-27
Related Documentation
- EX, J, M, MX, PTX, T Series
- Example: Controlling the CLI Environment
- Controlling the Junos OS CLI Environment