Subject: Re: bug#32867: -k Option Not Recognized

From: Mark Adler <[email-masked]>
Date: Fri, 28 Sep 2018 11:55:51 -0700

-k (—keep) was added in version 1.6.

You can pipe the output to keep the original. E.g.

    gzip -c something.txt > something.txt.gz

or similarly decompressing:

    gzip -dc something.txt.gz > something.txt

> On Sep 28, 2018, at 11:46 AM, Contee, Keisha R (CTR) <[email-masked]> wrote:
> 
> Hello Support,
> 
> The command gzip -k filename is not recognized on my RHEL 7 virtual machine. I am using gzip version 1.5.
> I am able to use gzip filename with success. In addition, -k is not listed as an option in -help, but it is listed in your documentation as a way to keep the original file. Is there a way to zip a file but still keep the original file?
> 
> Your help is appreciated!
> 
> Thank you.
> 
> Keisha Contee
> Knight Point Systems, BI Engineer
> Office of the Chief Information Officer
> U.S. Immigration and Customs Enforcement
> Department of Homeland Security
> Primary Phone: 202-340-9965
> Email: [email-masked]<mailto:[email-masked]>
> Please route remedy tickets to: Engineering / Application Services Branch / ASB - Applications
>