Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

more Command Guide for the Simple Built-In Pager

more is the classic pager that fills your screen one page at a time — simpler than less, still installed everywhere, and the safest default when you just want to read a file without flooding the terminal.


What is more, and Why Use It?

more displays text one screenful at a time, pausing after each page. It’s one of the original Unix utilities, present on essentially every system — including minimal containers and rescue disks where less might not be installed.

It’s deliberately limited: you can scroll forward and search forwards, but not backward through history. That simplicity is also its appeal.

Why Learn more?

  • It’s universally available. When you SSH into an unfamiliar or minimal system, more is almost certainly there.
  • It’s a safe first step before you know whether a file is huge — no terminal flooding, no risk.
  • It’s built into shells: in bash, typing a bare more on an empty command line enters a restricted interactive mode.
  • Old habits and scripts still use it — knowing its quirks saves confusion on older systems.

On any system where both exist, less is strictly more capable. Learn more for portability, not preference.


1. Page Through a File

more filename.txt

Example:

more /var/log/dmesg
  • Press Space for the next page, Enter for one line. more prints a progress indicator like -- More -- (END) or a percentage at the bottom.

2. Navigate

KeyAction
SpaceNext page
EnterNext line
bGo back one page (some versions)
/wordSearch forward for word
qQuit

Example:

more large-file.txt
  • Type /error to jump to the first match, then press / again (or n on newer versions) to find the next one.

3. Scroll Within the Screen

more -d file.txt
  • -d prompts you to use the arrow keys or z to scroll, instead of silently ignoring them. Helpful when you’re new to the tool and wondering why Space is the only thing that works.

4. Page Through Command Output

dmesg | more
  • Anything that produces long output can be piped into more — the same | less habit, with the simpler tool.

5. Control Screen Width and Lines Per Page

more -5 file.txt
more -wb file.txt
  • -5 limits output to 5 lines per screen.
  • -b paginates only after a full buffer (useful for very long lines); -w waits for keyboard input instead of overwriting.

Common Pitfalls

  • No backward search. more can’t search backwards through what you’ve already read the way less can — press b (if supported) or re-run the command.
  • Not on every system. Some minimal images ship less but not more, or vice versa; don’t assume. If both are missing, head and tail still work.
  • more file doesn’t truncate by default on all versions. Behaviour around Ctrl+C and terminal resizing varies between implementations (GNU vs BSD); test before relying on it in scripts.
  • Progress percentages mislead. The --xx-- indicator counts lines shown, not bytes, so it can jump around on files with very long lines.

CommandDescription
lessThe more capable modern pager
catDump a whole file at once
headFirst lines of a file
tailLast lines of a file

more Cheatsheet

CommandWhat It Does
more filePage through a file
command | morePage through command output
more -d fileEnable arrow-key scrolling prompts
more -5 file5 lines per screen
/wordSearch forward
qQuit