MacOS – Navigate terminal scrollback using keys

keyboardmacosterminal

On most (all?) Linux terminals (eg gnome terminal, tilda, guake etc,..) and the virtual consoles you can browse up through the terminal's scrollback buffer using the keys (ie without the mouse). Is this possible in OSX's terminal?

eg:

  1. In Gnome Terminal you enter ls
  2. oops – 50 lines of output on a 48 line terminal
  3. Ctrl-Shift-UpArrow scrolls back to see the first few lines of input (and eventually your command invocation

On VC's switch UpArrow for PageUp – is there anything equivalent on OSX?

I'm using OS 10.10.5

Best Answer

There are shortcuts for Page Up/Down and Line Up/Down in Terminal. You can find them under View menu item. For Page Up press ⌘ cmd+⇞ Page Up, for Line Up press ⌘ cmd+⌥ alt+⇞ Page Up.

Edit: you can get ⇞ Page Up on Macbook by pressing Fn+↑ Up Arrow.