# man > znew(1)

> **TLDR:** Recompress files from `.Z` to gzip format.
>
- Recompress a file from `.Z` to gzip format:
  `znew {{path/to/file1.Z}}`
- Recompress multiple files and display the achieved size reduction % per file:
  `znew -v {{path/to/file1.Z path/to/file2.Z ...}}`
- Recompress a file using the slowest compression method (for optimal compression):
  `znew -9 {{path/to/file1.Z}}`
- Recompress a file, [K]eeping the `.Z` file if it is smaller than the gzip file:
  `znew -K {{path/to/file1.Z}}`

*Source: tldr-pages*

---

[_ZNEW_(1)](https://www.chedong.com/phpMan.php/man/ZNEW/1/markdown)                                General Commands Manual                               [_ZNEW_(1)](https://www.chedong.com/phpMan.php/man/ZNEW/1/markdown)

## NAME
       znew -   recompress .Z files to .gz files

## SYNOPSIS
       **znew **[ -ftv9PK] [ name.Z ...  ]

## DESCRIPTION
       The  **Znew  **command recompresses files from .Z (compress) format to .gz (gzip) format.  If you
       want to recompress a file already in gzip format, rename the file to  force  a  .Z  extension
       then apply znew.

## OPTIONS
### -f     

### -t     

### -v     

### -9     

### -P     

### -K      -t

## SEE ALSO
       [**gzip**(1)](https://www.chedong.com/phpMan.php/man/gzip/1/markdown), [**zmore**(1)](https://www.chedong.com/phpMan.php/man/zmore/1/markdown), [**zdiff**(1)](https://www.chedong.com/phpMan.php/man/zdiff/1/markdown), [**zgrep**(1)](https://www.chedong.com/phpMan.php/man/zgrep/1/markdown), [**zforce**(1)](https://www.chedong.com/phpMan.php/man/zforce/1/markdown), [**gzexe**(1)](https://www.chedong.com/phpMan.php/man/gzexe/1/markdown), [**compress(1)](https://www.chedong.com/phpMan.php/man/compress/1/markdown)**

## BUGS
       If  the  **-P **option is used, **znew **does not maintain the timestamp if [**touch**(1)](https://www.chedong.com/phpMan.php/man/touch/1/markdown) does not support
       the **-r **option, and does not maintain permissions if [**chmod**(1)](https://www.chedong.com/phpMan.php/man/chmod/1/markdown) does not support the **--reference**
       option.

                                                                                             [_ZNEW_(1)](https://www.chedong.com/phpMan.php/man/ZNEW/1/markdown)
