Skip to main content
clarified that the things in the list are alternatives, not things that must be done sequentially
Source Link
Mark Plotnick
  • 26.1k
  • 3
  • 68
  • 82
  1. Give gunzip the --keep option (version 1.6 or later)

Here are several alternatives:

  • Give gunzip the --keep option (version 1.6 or later)

-k   --keep
        Keep (don't delete) input files during compression or decompression.

 gunzip -k file.gz 
  1. Pass the file to gunzip as stdin

     gunzip < file.gz > file 
  2. Use zcat (or, on older systems, gzcat)

     zcat file.gz > file 
  • Pass the file to gunzip as stdin

     gunzip < file.gz > file 
  • Use zcat (or, on older systems, gzcat)

     zcat file.gz > file 
  1. Give gunzip the --keep option (version 1.6 or later)

-k   --keep
        Keep (don't delete) input files during compression or decompression.

 gunzip -k file.gz 
  1. Pass the file to gunzip as stdin

     gunzip < file.gz > file 
  2. Use zcat (or, on older systems, gzcat)

     zcat file.gz > file 

Here are several alternatives:

  • Give gunzip the --keep option (version 1.6 or later)

-k   --keep
        Keep (don't delete) input files during compression or decompression.

 gunzip -k file.gz 
  • Pass the file to gunzip as stdin

     gunzip < file.gz > file 
  • Use zcat (or, on older systems, gzcat)

     zcat file.gz > file 
Tweaked formatting.
Source Link
  1. Give gunzip the --keep option (version 1.6 or later)

-k --keep
     -k   --keep
        Keep (don't delete) input files during compression or decompression.

 gunzip -k file.gz 
  1. Pass the file to gunzip as stdin

     gunzip < file.gz > file 
  2. Use zcat (or, on older systems, gzcat)

     zcat file.gz > file 
  1. Give gunzip the --keep option (version 1.6 or later)

-k --keep
     Keep (don't delete) input files during compression or decompression.

 gunzip -k file.gz 
  1. Pass the file to gunzip as stdin

     gunzip < file.gz > file 
  2. Use zcat (or, on older systems, gzcat)

     zcat file.gz > file 
  1. Give gunzip the --keep option (version 1.6 or later)

-k   --keep
        Keep (don't delete) input files during compression or decompression.

 gunzip -k file.gz 
  1. Pass the file to gunzip as stdin

     gunzip < file.gz > file 
  2. Use zcat (or, on older systems, gzcat)

     zcat file.gz > file 
Made the list a real Markdown numbered list + minor improvements in formatting
Source Link

a) Give gunzip the --keep option (version 1.6 or later)

  1. Give gunzip the --keep option (version 1.6 or later)

-k --keep
     Keep (don't delete) input files during compression or decompression.

Keep (don't delete) input files during compression or decompression.

gunzip -k file.gz 

b) pass the file to gunzip as stdin

gunzip < file.gz >gunzip file 

c) use zcat (or, on older systems, gzcat)

zcat-k file.gz > file 
  1. Pass the file to gunzip as stdin

     gunzip < file.gz > file 
  2. Use zcat (or, on older systems, gzcat)

     zcat file.gz > file 

a) Give gunzip the --keep option (version 1.6 or later)

-k --keep

Keep (don't delete) input files during compression or decompression.

gunzip -k file.gz 

b) pass the file to gunzip as stdin

gunzip < file.gz > file 

c) use zcat (or, on older systems, gzcat)

zcat file.gz > file 
  1. Give gunzip the --keep option (version 1.6 or later)

-k --keep
     Keep (don't delete) input files during compression or decompression.

 gunzip -k file.gz 
  1. Pass the file to gunzip as stdin

     gunzip < file.gz > file 
  2. Use zcat (or, on older systems, gzcat)

     zcat file.gz > file 
added 23 characters in body
Source Link
Mark Plotnick
  • 26.1k
  • 3
  • 68
  • 82
Loading
Source Link
Mark Plotnick
  • 26.1k
  • 3
  • 68
  • 82
Loading