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 nohup Command: Keep a Command Running After Logout

Linux nohup Command: Keep a Command Running After Logout

Learn how to use the Linux nohup command to keep a command running after the terminal closes or the user logs out, with essential options, practical examples, output interpretation, and common troubleshooting tips.

Linux shutdown Command: Schedule a Shutdown or Restart

Linux shutdown Command: Schedule a Shutdown or Restart

Learn how to schedule a Shutdown or Restart with the Linux shutdown command, including practical examples, key options, and important precautions.

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 resolvectl Command: Inspect systemd DNS Resolution

Linux resolvectl Command: Inspect systemd DNS Resolution

Learn how to inspect systemd DNS Resolution with the Linux resolvectl command, including practical examples, key options, and important precautions.

Linux fmt Command: Reformat Plain-Text Paragraphs

Linux fmt Command: Reformat Plain-Text Paragraphs

Learn how to reformat Plain-Text Paragraphs with the Linux fmt command, including practical examples, key options, and important precautions.

Linux dnf Command: Manage RPM Distribution Packages

Linux dnf Command: Manage RPM Distribution Packages

Learn how to manage RPM Distribution Packages with the Linux dnf command, including practical examples, key options, and important precautions.

Linux awk Command: Analyze Text by Fields

Linux awk Command: Analyze Text by Fields

Learn how to analyze Text by Fields with the Linux awk command, including practical examples, key options, and important precautions.

Linux Disk Management: Partitioning, Formatting, and Mounting

Linux Disk Management: Partitioning, Formatting, and Mounting

Learn a safe Linux disk-management workflow for identifying devices, creating partitions and filesystems, mounting storage, and configuring persistent mounts.

Linux journalctl Command: Read systemd Logs

Linux journalctl Command: Read systemd Logs

Learn how to read systemd Logs with the Linux journalctl command, including practical examples, key options, and important precautions.

Linux ss Command: Inspect Open Ports and Sockets

Linux ss Command: Inspect Open Ports and Sockets

Learn how to inspect Open Ports and Sockets with the Linux ss command, including practical examples, key options, and important precautions.