Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 17 down vote accepted

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

share|improve this answer
+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
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


for gnome-terminal single line up/down

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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