Pager
From Gentoo Wiki
Resources
A pager is a tool for displaying the contents of files or other output on the terminal, in a user friendly way, across several screens if needed.
Available software
This is just a partial selection of pagers available in Gentoo.
Name | Package | Description |
---|---|---|
Bat | sys-apps/bat | cat(1) clone with syntax highlighting and Git integration. |
Less | sys-apps/less | Free, open-source file pager, almost ubiquitous on Linux. Included in the @system set. |
More | sys-apps/util-linux | Basic pager, part or util-linux included in the @system set. |
Most | sys-apps/most | Paging program that displays, one windowful at a time, the contents of a file. |
Nvimpager | app-editors/neovim | Use nvim as a pager to view manpages, diffs, etc with nvim's syntax highlighting. |
Also consider emerging app-editors/vim with USE=vim-pager
.
Default pager
The default pager can be configured by setting the PAGER environment variable, and similarly, the default manpager can be configured by setting the MANPAGER environment variable:
PAGER="less"
MANPAGER="less"
The default pager can be modified using the eselect command.
See also
- Hex editor — an application to allow viewing and editing of binary files, as opposed to text files.
- Terminal emulator — emulates a video terminal within another display architecture (e.g. in X).
- Text editor — a program to create and edit text files.