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,
moreis 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
moreon 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,
lessis strictly more capable. Learnmorefor 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.
moreprints a progress indicator like-- More -- (END)or a percentage at the bottom.
2. Navigate
| Key | Action |
|---|---|
Space | Next page |
Enter | Next line |
b | Go back one page (some versions) |
/word | Search forward for word |
q | Quit |
Example:
more large-file.txt
- Type
/errorto jump to the first match, then press/again (ornon newer versions) to find the next one.
3. Scroll Within the Screen
more -d file.txt
-dprompts you to use the arrow keys orzto 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| lesshabit, with the simpler tool.
5. Control Screen Width and Lines Per Page
more -5 file.txt
more -wb file.txt
-5limits output to 5 lines per screen.-bpaginates only after a full buffer (useful for very long lines);-wwaits for keyboard input instead of overwriting.
Common Pitfalls
- No backward search.
morecan’t search backwards through what you’ve already read the waylesscan — pressb(if supported) or re-run the command. - Not on every system. Some minimal images ship
lessbut notmore, or vice versa; don’t assume. If both are missing,headandtailstill work. more filedoesn’t truncate by default on all versions. Behaviour aroundCtrl+Cand 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.
Related Commands
| Command | Description |
|---|---|
| less | The more capable modern pager |
| cat | Dump a whole file at once |
| head | First lines of a file |
| tail | Last lines of a file |
more Cheatsheet
| Command | What It Does |
|---|---|
more file | Page through a file |
command | more | Page through command output |
more -d file | Enable arrow-key scrolling prompts |
more -5 file | 5 lines per screen |
/word | Search forward |
q | Quit |