tags:

views:

35

answers:

6

When you scroll up, say to see a log, the first portion of it will not be visible since the terminal only supports a limited no. of lines. So if you want to scroll up and be able to see everything, at least a few pages up, how do you do it?

+1  A: 

Try using the screen command, and set its scrollback buffer to a larger size.

screen has many other benefits and wonderful features.

If all you're doing is looking at a log, you could alternately use a pager such as less

Borealid
A: 

Use SHIFT + Page Up and SHIFT + Page Down.

Matias Valdenegro
My impression of the original post was that the scrolling you're describing didn't go far enough. Which it usually doesn't, in my experience.
Borealid
A: 

An alternative to screen is using tee to copy all output to a file while still printing it on the terminal:

yourcommand | tee output.txt
tobiw
A: 

Some tricks I use-

some terminal applications (gnome-terminal) allow you to increase the scroll-back buffer size

pipe output to a file:

command > file.log

pipe your command to less:

command | less

tail log and pipe to grep to reduce output

tail -f example.log | grep 'search text'
+1  A: 

If you are using gnome-term (the default), then you can change your settings. Either set the no. of lines to unlimited, or to a much larger buffer size than the default.

zdav
A: 

piping the output to a pager like the following is the better choice.

command | less

command | more

thegeek