less package.
Best pager available on all distributions.
Advantages over Vim:
- loads faster
Disadvantages over Vim:
- much less powerful
Inputs:
-
/: search forward -
n: repeat last search -
d: down one page -
u: up one page -
g: top of document -
G: bottom of document -
g: top of document -
<ENTER>: down one line -
-S: toggle line wrappingless "$f" printf 'ab\ncd\n' | less -
-R: interpret ANSI color codesRubbish:
ls --color | lessColors!:
ls --color | less -R -
-X: keep last view of less visible on the terminal after quitting.http://askubuntu.com/questions/429781/less-output-does-not-show-output-in-terminal-after-quitting-it