Name

zmore

Synopsis

zmore [files]

Similar to more. Uncompress files and print them one screenful at a time. Works on files compressed with compress, gzip, or pack, and with uncompressed files. The argument i in the following zmore commands is an optional integer argument.

Commands

space

Print next screenful.

ispace

Print next i lines.

Return

Print one more line.

id, i^D

Print next i, or 11, lines.

iz

Print next i lines or a screenful. If i is specified, treat it as the new window size for the rest of the current file, then revert to the default.

is

Skip i lines, then print the next screenful.

if

Skip i screens, then print the next screenful.

q, Q, :q, :Q

Go to next file or, if current file is the last, exit zmore.

e, q

Exit zmore when the prompt “--More-- (Next file: file)” is displayed.

s

Skip next file and continue when the prompt “--More-- (Next file: file)” is displayed.

=

Print line number.

i/expr

Search forward for ith occurrence (in all files) of expr, which should be a regular expression. Display occurrence, including the two previous lines of context.

in

Search forward for the ith occurrence of the last regular expression searched for.

!command

Execute command in shell. If command is not specified, execute last shell command. To invoke a shell without passing it a command, enter \!.

.

Repeat the previous command.

Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.