2

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

2
  • Which OS version are You using? Commented Oct 29, 2015 at 11:28
  • Version 10.10.5
    – Greg
    Commented Oct 29, 2015 at 11:37

3 Answers 3

4

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.

1
  • Thanks - turns out TotalTerminal/Visor was preventing me from seeing the View menu - otherwise I might have found it myself. For me <kbd>cmd</kbd>+<kbd>Up Arrow</kbd> is needed for Line Up - apparently I didn't find it due to fixation with shift.
    – Greg
    Commented Oct 29, 2015 at 12:03
1

Yes, Terminal supports the standard OS X Page Up/Down keys for scrolling by pages, and there are Terminal-specific commands for scrolling the terminal view by pages or by lines, and they have keyboard shortcuts that are available even when the terminal keyboard map binds other actions to Page Up/Down. The exact shortcuts depend on the version. See the View menu in recent versions, and the Window menu in older versions.

1
  • Hmm,... turns out half my problem seems to be that Visor prevents the terminal menu from showing,...
    – Greg
    Commented Oct 29, 2015 at 12:00
1

In recent versions of macOS you can use CMD + up/down to jump to the declaration of the previous command.

It scrolls the output to where the command was used, and is briefly highlighted above its output.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .