Navigate Scroll Up and Down on Screen SSH
When working in an SSH session or terminal, you can navigate and scroll up and down on the screen using a combination of keyboard shortcuts and Vim-like commands. Here’s how to do it:
-
Ctrl + A, ESC: This combination is used to enter the “copy mode” in the terminal. Pressing
Ctrl + A
followed byESC
allows you to navigate and scroll using Vim-like keybindings. -
Vim-like Commands: Once you are in copy mode, you can use the following Vim-like commands to navigate and scroll:
Ctrl + U
: Scroll half a page up.Ctrl + D
: Scroll half a page down.Ctrl + B
: Scroll a full page up (similar to Page Up key).Ctrl + F
: Scroll a full page down (similar to Page Down key).- Arrow keys (Up, Down, Left, Right) can be used to move the cursor position.
v
: Enter visual mode to select text.y
: Copy (yank) the selected text.q
: Quit copy mode.
Here’s a breakdown of how to use these commands:
- Press
Ctrl + A
followed byESC
to enter copy mode. - Use the arrow keys to move the cursor to the desired starting position.
- Press
v
to enter visual mode. - Move the cursor to select text (similar to how you would do it in Vim).
- Once the text is selected, press
y
to copy it. - You can now use
Ctrl + U
,Ctrl + D
,Ctrl + B
, orCtrl + F
to scroll up or down to the desired location. - To paste the copied text, right-click or use
Ctrl + Shift + V
(paste keyboard shortcut).
These commands and shortcuts can be very useful when you need to navigate and scroll through large amounts of text in an SSH session or terminal. They provide a more efficient way to move around and copy text compared to using the mouse or traditional scrolling methods.