Scrolling in the command line

  • 0
  • 1
  • Question
  • Updated 4 years ago
Please can anyone tell me how to scroll in the command line when I want to view commands?

Thank you.
Photo of Ruthie

Ruthie

  • 408 Points 250 badge 2x thumb

Posted 4 years ago

  • 0
  • 1
Photo of Paul Russo

Paul Russo, Alum

  • 9,694 Points 5k badge 2x thumb
Hey Ruthie

If you want to see or scroll through the commands you already used you can either type history or you can use the up and down arrows to go through all of the commands.

If you want to stop the CLI paging  so that you can capture the whole config use the command dis clip to re-enable use enable clip.

Let me know if that doesn't answer your question

P
Photo of Jason Parker

Jason Parker, Employee

  • 3,038 Points 3k badge 2x thumb
To disable the command line (to allow it to scroll the complete section (like show config)
disable clipaging

to see the config in sections

enable clipaging

Default is enabled

If disabled, then it is only during that session. If logout or disconnected, then it fails to default(disable clipaging)
Photo of Jason Parker

Jason Parker, Employee

  • 3,038 Points 3k badge 2x thumb
also note:
If you logout and then log back in, then the session starts over.
Paul and I both are stating the same feedback.
I hope we are helping you
Jason and Paul
Photo of Ruthie

Ruthie

  • 408 Points 250 badge 2x thumb
@Paul and Jason, 

I have been trying all day but every time I scroll, it just scrolls down. I cannot scroll up, it keeps scrolling down. 
Photo of Jason Parker

Jason Parker, Employee

  • 3,038 Points 3k badge 2x thumb
disable clipaging
Photo of Jason Parker

Jason Parker, Employee

  • 3,038 Points 3k badge 2x thumb
then once you hit a command like
show config, then hit a q (to quit) and then scroll back up.
Jason
Photo of Ruthie

Ruthie

  • 408 Points 250 badge 2x thumb
Thanks I finally got it. I used the shift+page up and shift+page down. It is linux-based command line.
Photo of Stephane Grosjean

Stephane Grosjean

  • 762 Points 500 badge 2x thumb
Most of Extreme CLI shortcuts are bash-like, for what I know.

Ctrl-e : cursor to end of line
Ctrl-a : cursor to beginning of line
Ctrl-d : delete character on the cursor
Ctrl-h : delete character before the cursor
Ctrl-k : delete line from the cursor position and forward (right)
Ctrl-w : delete word backward
Ctrl-L : clear screen
Ctrl-u : delete before the cursor position


I guess the Alt command are valid, but maybe your terminal emulator will capture those shortcuts for itself (menus, etc).