gzip
Verified for current stable LTS
Gzip Command: Compress File Keep Original
Use for compress file keep original with Gzip. Exact CLI syntax to compress file keep original using Gzip.
When to use this: Use for compress file keep original with Gzip.
Command Syntax
gzip -k <path/to/file> gzip -k <path/to/file> Command Breakdown
-k- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to compress file keep original using Gzip.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Gzip Command: Compress File Replace
gzip <path/to/file> Gzip Command: Compress File With Output Filename gzip -c <path/to/file> > <path/to/compressed_file.gz> Gzip Command: Decompress Archive With Output Filename gzip -cd <path/to/file.gz> > <path/to/uncompressed_file> Gzip Command: Decompress File Replace gzip -d <path/to/file.gz> Gzip Command: Display Compression Info gzip -v <path/to/file.gz> Alternative Approaches
Alternative tools for similar operation intents.
Tar Command: Create A Compressed Archive And Write It To A File Using The File Extension To Automatically Determine The Compression Program
tar caf <path/to/target.tar.xz> <path/to/file1 path/to/file2 ...> Bunzip2 Command: Decompress Bzip2 File bunzip2 <file.bz2> Bun Pm Pack Command: Set Gzip Compression Level bun pm pack --gzip-level <0-9> Tar Command: Extract A Compressed Archive File Into The Current Directory Verbosely tar xvf <path/to/source.tar[.gz|.bz2|.xz]> Tar Command: Extract A Compressed Archive File Into The Target Directory tar xf <path/to/source.tar[.gz|.bz2|.xz]> -C <path/to/directory>