terminal pager

{{more footnotes needed|date=June 2022}}

{{primary sources|date=February 2017}}

File:Unix more output.png, a popular terminal pager]]

A terminal pager, paging program or simply pager is a computer program used to view (but not modify) the contents of a text file moving down the file one line or one screen at a time. Some, but not all, pagers allow movement up a file.{{cite web|url=https://debian-administration.org/article/246/An_overview_of_file_paging_applications|title=Debian: An overview of file paging applications}} A popular cross-platform terminal pager is more, which can move forwards and backwards in text files but cannot move backwards in pipes.[http://linux.die.net/man/1/more manpage of more] less is a more advanced pager that allows movement forward and backward, and contains extra functions such as search.[http://linux.die.net/man/1/less manpage of less]

Some programs incorporate their own paging function, for example bash's tab completion function.{{cite web|url=http://ftp.gnu.org/old-gnu/Manuals/bash-2.05a/html_node/bashref_104.html#SEC111|title=Bash Reference Manual: Programmable Completion Builtins|work=gnu.org}}

Examples

  • more
  • less
  • pg {{webarchive |url=https://web.archive.org/web/20140903095222/http://www.linuxmanpages.com/man1/pg.1.php |date=3 September 2014 |title="PG" from linuxmanpages.com

}}

  • most{{cite web|url=http://linux.die.net/man/1/most|title=most(1): browse/page through text file - Linux man page|work=die.net}}
  • nano --view
  • emacs -nw -e "(view-mode)"{{cite web|url=https://www.gnu.org/software/emacs/manual/html_node/emacs/View-Mode.html|title=View-Mode}}
  • w3m

References

{{Reflist}}

  • {{cite book |last1=Das |first1=Sumitabha |title=Your UNIX/Linux: The Ultimate Guide |date=2012 |publisher=McGraw-Hill |isbn=978-0-07-337620-2 |edition=3rd|pages=31–33, 36, 53, 76–78, 89, 172, 717, 729}}
  • {{Cite book |last=Koch |first=Jeff |url=https://www.worldcat.org/oclc/45842916 |title=Practical UNIX |date=1999 |publisher=Que Pub |isbn=0-585-33105-7 |location=Indianapolis, Ind. |oclc=45842916}}

{{compu-prog-stub}}