ZNEW(1)

โœจ ZNEW(1) โœจ

okay bestie, welcome to the znew page from the General Commands Manual ๐Ÿ’– no cap, this one's short and sweet and honestly kinda iconic.


๐ŸŽ€ NAME ๐ŸŽ€

znew โ€” the little tool that recompresses your .Z files into .gz files ๐Ÿฆ‹


๐ŸŒธ SYNOPSIS ๐ŸŒธ

znew [ -ftv9PK] [ name.Z ...  ]

๐Ÿ’… DESCRIPTION ๐Ÿ’…

So basically, znew takes files and recompresses them from .Z (that's compress format, the old-school one) into .gz (that's gzip format, the glow-up โœจ).

And here's the little hack that lives in the description, fr fr: if you wanna recompress a file that's already in gzip format? You rename the file so it gets a .Z extension, and then you run znew on it. That's it. That's the trick. ๐Ÿซถ


๐Ÿ”ฅ OPTIONS ๐Ÿ”ฅ

  • -f โ€” Force the recompression from .Z to .gz format, even if a .gz file already exists. like, she's going through with it no matter what ๐Ÿ’€
  • -t โ€” Tests the new files before deleting the originals. safety first, always ๐Ÿ‘‘
  • -v โ€” Verbose mode. Displays the name and the percentage reduction for every file that gets compressed. not me needing the receipts ๐Ÿ“‰
  • -9 โ€” Uses the slowest compression method (which is also the optimal compression). slow and perfect, main character energy ๐ŸŒโœจ
  • -K โ€” Keeps a .Z file around when it turns out to be smaller than the .gz file. and yes, this implies -t ๐Ÿ’–

๐ŸŒˆ SEE ALSO ๐ŸŒˆ

gzip(1), zmore(1), zdiff(1), zgrep(1), zforce(1), gzexe(1), compress(1)


okay that's the whole page bestie, you ate that ๐Ÿ“ go compress something and slay ๐Ÿ’œ

signing off from the znew(1) page of the General Commands Manual โ€” no version or date on this one, she's timeless, iykyk ๐Ÿงšโ€โ™€๏ธโญ

๐Ÿ“ฆ where this page comes from