On Unix-like operating systems, the more command displays text, one screen at a time.

This page covers the GNU/Linux version of more.

Description

more is a filter for paging through text one screen at a time. It does not provide as many options or enhancements as less, but is nevertheless quite useful and simple to use.

  • Description
  • Syntax
  • Commands
  • Environment
  • Examples
  • Related commands
  • Linux commands help

Syntax

more [-dlfpcsu] [-num lines] [+/pattern] [+linenum] [file …]

Options

Commands

When displaying a file, more can be controlled with a set of commands loosely based on the text editor vi. Some commands can be preceded by a decimal number, named k in the following descriptions.

Environment

more uses the values of the following environment variables, if they are defined:

Examples

more +3 myfile.txt

Display the contents of file myfile.txt, beginning at line 3.

more +/“hope” myfile.txt

Display the contents of file myfile.txt, beginning at the first line containing the string “hope”.

ls | more

List the contents of the current directory with ls, using more to display the list one screen at a time.

cat — Output the contents of a file.csh — The C shell command interpreter.ctags — Create tag files for source code.less — Scrolling text viewer.man — Display the manual page of a given command.nroff — Format documents for terminal display or line-printer.script — Record everything printed on your screen.sh — The Bourne shell command interpreter.ul — Translate underscores to underlining.