zless(1)

zless1

File perusal filter for crt viewing of compressed text

Usage

zless [name ...]

Overview

The zless command is a filter which allows examination of compressed or plain text files one screenful at a time on a soft-copy terminal. It is the equivalent of setting the environment variable LESSOPEN to '|gzip -cdfq -- %s', and the environment variable LESSMETACHARS to '<space><tab><newline>;*?"()<>[|&^`#\$%=~', and then running less. However, enough people seem to think that having the command zless available is important to be worth providing it.

Releases

19 releases since Debian 1.1 (Buzz); the text changed 8 times.

  1. 1.1–3.0
  2. 3.1
  3. 4.0
  4. 5.0–6.0
  5. 7–9
  6. 10–11
  7. 12
  8. 13
  9. Arch

Bugs

The zless command does not work with compressed data that is piped to it via standard input; it requires that input files be specified as arguments. To read compressed data from a pipe, you can use ...|gunzip|less instead of ...|zless.

From gzip 1.15-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.