There are several different terminal programs for Linux. All of them have more or less affordable ways to adjust the number of scroll lines. I'm not on my Linux box right now, but I remember that this was a relatively obvious place in the Settings menu for the GNOME terminal, and I would suggest that KDE is similar.
Secondly, it is recommended to use shell redirection; which is a more general useful tactic.
source share