zforce(1)

zforce1

Force gzip files to have a .gz suffix

Usage

zforce file ...

Overview

The zforce utility renames gzip(1) files to have a ‘.gz’ suffix, so that gzip(1) will not compress them twice. This can be useful if file names were truncated during a file transfer. Files that have an existing ‘.gz’, ‘-gz’, ‘_gz’, ‘.tgz’ or ‘.taz’ suffix, or that have not been compressed by gzip(1), are ignored.

Caveats

zforce overwrites existing files without warning.

Releases

61 releases since OpenBSD 2.1; the text changed 3 times.

  1. 2.1–3.3
  2. 3.4–4.0
  3. 4.1
  4. 4.2–8.0

From man 8.0-current-20261101 in OpenBSD 8.0-current (2026-11-01). Parsed by carta from the page's mdoc source.