20

What is the shortcut key for scrolling inside a terminal?

If I hit the Up or Down arrow or PageUp or PageDown, it will only traverse through command history, not let me traverse the previous part displayed in the terminal.

Especially when I run Matlab in a terminal, I have the same problem.

My OS is Ubuntu.

26

Shift+PgUp/PgDn/Home/End will scroll in gnome-terminal and Terminal.

  • +1 Thanks! How about making up/down arrow keys to work? – Tim Mar 15 '12 at 11:17
  • Are Shift + uparrow and Shift + downarrow supposed not to work? – Tim Mar 15 '12 at 11:29
  • But be sure you don't have them bound as hotkeys. Also, check the terminal preferences. – Ignacio Vazquez-Abrams Mar 15 '12 at 11:31
  • 1
    I've never run across any terminal which didnt support at least the SHIFT PGUP/PGDN combo. The actual console (tty1, tty2, etc) even supports it. – Patrick Mar 15 '12 at 22:37
17

Ctrl+Shift+Up/Down

for gnome-terminal single line up/down

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.