Linux more Command: View Text One Screen at a Time

The more command is a terminal pager that shows long text one screen at a time. It is widely available and simple to use, although less generally offers more flexible backward navigation and searching.

This guide explains the basic syntax, key options, practical examples, related commands, common cautions, and frequently asked questions for more.

What Is the more Command?

It reads files or standard input, fills the terminal screen, and waits for an interactive key. Space advances a screen, Enter advances a line, and q quits. Backward movement and option behavior depend on the implementation and whether input is a regular file or a pipe.

Basic Syntax

more [OPTION]... [FILE]...

Options and edge cases can vary by implementation and version. Check more --help and man more on the target system before relying on implementation-specific behavior.

Basic more Usage

Read a file screen by screen

A progress indicator or status prompt may appear at the bottom of the terminal.

more README.txt

Advance or exit

During execution, press Space for the next screen, Enter for the next line, or q to exit.

more changelog.txt

Page through command output

Place more at the end of a pipeline when the preceding output is too long for one screen.

dmesg | more

Understanding Page Boundary Display

more sample.txt shows the content one screen at a time and waits for the next input. At the end of the output, a progress indicator or --More-- may appear.

more sample.txt

Example status display:

--More--(50%)

Space is used for the next screen, Enter for the next line, and q to quit. The display format and whether going back is possible depend on the implementation and whether the input is a file or a pipe.

Key Options

Option Purpose
-d Display key guidance and friendlier invalid-key messages.
-s Squeeze repeated blank lines.
-f Count logical rather than screen lines in supported implementations.
-NUM Use NUM lines per screen.
+NUM Begin at a specified line number.
+/PATTERN Begin near the first matching pattern.

Practical Examples

Start at a line number

Use the implementation-supported +NUM form to skip directly to an approximate location.

more +200 server.log

Start near a search match

Quote the argument when the pattern contains shell metacharacters.

more +/'ERROR' server.log

Compress blank lines

The -s option reduces scrolling in text with large blank regions.

more -s report.txt

more and Related Commands

Command Primary role Best fit
more Simple screen-by-screen paging Mostly forward reading
less Rich navigation and search Long-file analysis
cat Immediate full output Short files
head Only the beginning Quick format checks

Important Cautions

Implementations differ

util-linux, BSD, and other versions can support different keys and options. Read the local manual.

Piped input may restrict backward movement

Unlike a seekable regular file, a stream may not provide previously consumed data.

Avoid interactive pagers in unattended scripts

Use noninteractive selectors such as head, sed, or awk when output must be processed automatically.

FAQ

How do I exit more?

Press q.

How do I advance one line?

Press Enter in typical implementations.

Should I use more or less?

Use more for basic paging; use less when you need stronger searching and backward navigation.

Can more start at a specific line?

Supported implementations accept a form such as more +200 FILE.

Related Resources

More in This Category
Linux Tutorial / PID and PPID Explained: Find and Manage Processes

Linux Tutorial / PID and PPID Explained: Find and Manage Processes

Understand what PID and PPID mean, inspect parent-child process relationships with ps and pgrep, and safely terminate a process you started yourself.

A History of Linux: From a 1991 Hobby Project to Global Infrastructure

A History of Linux: From a 1991 Hobby Project to Global Infrastructure

Trace the history of Linux from Unix and the GNU Project through the first Linux kernel, distributions, enterprise adoption, cloud computing, containers, and modern infrastructure.

Linux ping Command: Test Host Reachability and Round-Trip Time

Linux ping Command: Test Host Reachability and Round-Trip Time

Learn how to test Host Reachability and Round-Trip Time with the Linux ping command, including practical examples, key options, and important precautions.

Linux printenv Command: Print Environment Variable Values

Linux printenv Command: Print Environment Variable Values

Learn how to use the Linux printenv command to print all environment variables or selected variable values, with essential options, practical examples, output interpretation, and common troubleshooting tips.

Linux apt Command: Manage Packages on Debian and Ubuntu

Linux apt Command: Manage Packages on Debian and Ubuntu

Learn how to manage Packages on Debian and Ubuntu with the Linux apt command, including practical examples, key options, and important precautions.

Linux apk Command: Manage Packages on Alpine Linux

Linux apk Command: Manage Packages on Alpine Linux

Learn how to manage Packages on Alpine Linux with the Linux apk command, including practical examples, key options, and important precautions.

Linux help Command: Read Help for Bash Built-in Commands

Linux help Command: Read Help for Bash Built-in Commands

Learn how to use the Linux help command to read usage information for Bash built-in commands, with essential options, practical examples, output interpretation, and common troubleshooting tips.

Linux tr Command: Translate and Delete Characters

Linux tr Command: Translate and Delete Characters

Learn how to translate and Delete Characters with the Linux tr command, including practical examples, key options, and important precautions.

Linux hostnamectl Command: Show and Change the Host Name

Linux hostnamectl Command: Show and Change the Host Name

Learn how to show and Change the Host Name with the Linux hostnamectl command, including practical examples, key options, and important precautions.

Linux uptime Command: Check Uptime and Load Averages

Linux uptime Command: Check Uptime and Load Averages

Learn how to use the Linux uptime command to check how long the system has been running and interpret load averages, with essential options, practical examples, output interpretation, and common troubleshooting tips.