Linux Commands Reference - Complete Linux Command Guide
Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.
gzip
Compress or decompress files (gzip format)
Syntax
gzip [OPTION]... [FILE]...Common Options
-dDecompress-kKeep original file-cWrite to stdout-rRecursive compression-1Fastest compression-9Best compression-lList compressed file info-tTest compressed file integrity-vVerbose output-nNo original filename/timestamp-fForce compressionCommon Examples
gzip file.txtCompress file (replace original)
gzip -k file.txtCompress keeping original
gzip -d file.txt.gzDecompress file
gzip -r directory/Recursive compress directory
gzip -9 file.txtBest compression ratio
gzip -l file.txt.gzView compressed file info
gzip -c file.txt > file.txt.gzCompress to stdout
gzip -t file.txt.gzTest compressed file
Related Tools
More Code & Dev Tools
Git Commit Message Generator
Generate standardized Git commit messages following Conventi...
Color Shades & Tints Generator
Generate shades, tints, and tones from any base color. Expor...
Nginx Config Generator
Generate Nginx configuration files visually. Support static ...
Color Extractor
Extract colors from images online. Get dominant colors and c...
Code Analyzer
Analyze code quality online. Check for errors, warnings, and...
Code Formatter
Format and beautify code online. Support multiple languages ...
JavaScript Formatter
Format and beautify JavaScript code online. Improve code rea...
cURL Converter
Convert cURL commands to Python, JavaScript, PHP, Go, and mo...
Cron Expression Generator
Generate and validate Cron expressions online. Convert Cron ...
Timestamp Batch Converter
Convert multiple timestamps at once. Batch process Unix time...
API Tester
Test HTTP APIs online with support for GET, POST, PUT, DELET...
HTTP Header Analyzer
Analyze HTTP response headers. Check security headers, CORS ...