Ubuntu – How to see more lines in the terminal

command line

I'm installing a package and get a load of errors and need to be able to read through all the error messages that come up. Unfortunately the terminal will only display a finite number of lines.
How do I go about viewing previous lines or changing the maximum number of lines that can be displayed?

Best Answer

Use less:

your_command | less 

Your Enter key will take you down.

Also, press q to exit.