16

I am getting started using my Raspberry Pi. Sometimes I run some command where the console output scrolls off the screen too fast for me to read. For example, installing some library/package from source, I'd like to be able to review the output. However, I can't figure out how to scroll up to view the previous output. The up arrow is obviously not working. Is there a special key command, or different way to view the console output?

Andrew
  • 422
  • 2
  • 4
  • 11
  • Hi Andrew, I'm putting this question on-hold as it isn't specific to the Raspberry Pi and is more of a 'generic' Linux question. For the future, SuperUser.SE would probably be the best place to ask. – Jivings May 03 '14 at 15:55

2 Answers2

24

Shift + PageUp or Shift + PageDown keys.

eSe
  • 241
  • 1
  • 2
  • 1
    You can also use scroll-lock (when using a tty) to pause the text scrolling past. – Fred May 04 '14 at 18:06
12

Pipe the output of the command to less:

cmd arg0 arg1 | less

In less, you can scroll up and down intuitively with the arrow keys. Use the Q key (for Quit) to exit less and return to your prompt.

https://stackoverflow.com/questions/15255070/how-do-you-scroll-up-down-on-linux-server-terminal

Carl Smith
  • 113
  • 5