less
. Less is far more than a mere pager - it has lots of nice features which make it any UNIX user's friend.
/
to search forward, ?
to search backward. By default these searches use regular expressions, including the very useful ^
(start of line) $
(end of line).
One of less's nicest features is that it highlights all occurances of a sought item for the entirity of the file - so you can search once and then page around and see all the search matches, including those that were offscreen when the search command was issued:
less
you can view,
move around in, and search such files. This is particularly handy if you need to look through giant logfiles such as those found in /var/log
.