ZMORE(1)

๐Ÿ“ฆ
version 1.15 ยท 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

๐ŸŽ€ ZMORE(1) ๐ŸŽ€

ZMORE(1) is from the General Commands Manual, and bestie, it's the cutest pager in the whole terminal ๐Ÿ’–

โœจ NAME โœจ

zmore - file perusal filter for crt viewing of compressed text ๐Ÿ’…

๐ŸŒธ SYNOPSIS ๐ŸŒธ

zmore [ name ...  ]

๐Ÿ’œ DESCRIPTION ๐Ÿ’œ

okay so zmore is a filter that lets you read compressed or plain text files one screenful at a time on a soft-copy terminal ๐Ÿ–ฅ๏ธโœจ It works on files compressed with compress, pack or gzip, and it's also totally fine with uncompressed files ๐Ÿซถ If a file doesn't exist, zmore goes hunting for the same name with a .gz, .z or .Z suffix added on the end ๐Ÿ•ต๏ธโ€โ™€๏ธ

By default, zmore pauses after each screenful and shows --More-- at the bottom of the screen ๐Ÿ‘€ Hit a carriage return and you get one more line. Hit a space and you get a whole new screenful. There are more moves too, listed below ๐Ÿ”ฅ

zmore checks /etc/termcap to figure out what your terminal can do and how big the default window should be. On a terminal that can show 24 lines, the default window is 22 lines ๐Ÿฆ‹ If you'd rather use a pager other than the default more, set the environment variable PAGER to the name of the program you want, like less ๐ŸŒˆ

Here's the rest of the commands you can type while zmore is paused. The i is an optional integer argument, and it defaults to 1 โœจ

  • i<space> โ€” shows i more lines (or another full screenful if you don't give a number) ๐ŸŒธ
  • ^D โ€” shows 11 more lines (a "scroll") ๐ŸŽ€ If you give an i, that becomes the new scroll size ๐Ÿ’–
  • d โ€” literally the same as ^D (control-D) ๐Ÿ’…
  • iz โ€” acts like a space, except the i, if you type one, becomes the new window size ๐Ÿงš
  • is โ€” skips i lines and then prints a screenful ๐Ÿฆ‹
  • if โ€” skips i screenfuls and then prints a screenful ๐ŸŒˆ
  • q or Q โ€” quit ๐Ÿ‘‹
  • = โ€” shows the current line number ๐Ÿ”ข
  • i/expr โ€” searches for the i-th occurrence of the regular expression expr ๐Ÿ” You can use your erase and kill characters to edit the regex. Erasing back past the first column cancels the search, so no harm, no foul ๐Ÿซถ
  • in โ€” searches for the i-th occurrence of the last regular expression you entered ๐Ÿ”
  • !command โ€” invokes a shell with command ๐Ÿš The character ! in "command" gets swapped out for the previous shell command, and the sequence \! becomes a plain ! ๐Ÿ’€
  • :q or :Q โ€” quit, same as q or Q ๐Ÿ‘‘
  • . โ€” (dot) repeats the previous command ๐Ÿ”
โš ๏ธ bestie, these commands take effect immediately, so you don't need to hit a carriage return. Before you've typed the command character itself, you can hit the line kill character to cancel the number you were building. You can also hit the erase character to bring back the --More-- message ๐Ÿ™ˆ

If output is streaming to the terminal, you can hit the quit key (normally control-\) at any time ๐Ÿ›‘ zmore will stop sending output and show the usual --More-- prompt, and then you can type any of the commands above like normal. Real talk though, some output gets lost when you do this, because any characters still waiting in the terminal's output queue get flushed when the quit signal hits ๐Ÿ˜ญ

zmore puts the terminal into noecho mode so the output can keep flowing nicely ๐ŸŒŠ That means what you type won't show up on your screen, except for the / and ! commands ๐Ÿ’œ

If standard output is not a teletype, zmore acts just like zcat ๐Ÿ“ The one difference is that if you've got more than one file, a header gets printed before each file โœจ

๐Ÿ“ FILES ๐Ÿ“

  • /etc/termcap โ€” the terminal data base ๐Ÿ—‚๏ธ

๐Ÿ”— SEE ALSO ๐Ÿ”—

more(1), gzip(1), zdiff(1), zgrep(1), znew(1), zforce(1), gzexe(1) ๐Ÿซถ


Okay bestie, that's the whole ZMORE(1) page, served from the General Commands Manual ๐Ÿ’…โœจ Go read something compressed and make it giving ๐Ÿฆ‹๐Ÿ’–