Command Line Basics: View Text With less
I've shown previously how to use the more command to view text output. Today I'll show how to do the same thing with the less command. You can run the command simply by opening a terminal window and entering less followed by the file name. For example:
What's nice about the less command is that there are many ways to navigate the file. For example, the scroll wheel on your mouse can be used to scroll up and down through the file. The space bar will advance the file by one screen full. You can also use the Page Up and Page Down keys. When you're done viewing the file, use the [Q] key to quit.
As with many terminal commands, you can redirect output to the less command using a pipe.
To learn more about the less command, check the info page.