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
Color Contrast Checker
Check color contrast ratios for WCAG compliance. Ensure acce...
Code Share
Create and share code snippets online. Syntax highlighting a...
CSS Formatter
Format and minify CSS online. Beautify CSS code or compress ...
XML Formatter
Format and minify XML online. Beautify XML code or compress ...
SQL Formatter
Format and beautify SQL queries online. Improve SQL readabil...
Color Converter
Convert between HEX, RGB, HSL color formats. Color picker wi...
JavaScript Obfuscator
Obfuscate and protect JavaScript code. Make your code harder...
WebSocket Tester
Test WebSocket connections and messages in real-time. Connec...
cURL Converter
Convert cURL commands to Python, JavaScript, PHP, Go, and mo...
Timestamp Converter
Convert between Unix timestamp and human-readable date. Supp...
Timestamp Batch Converter
Convert multiple timestamps at once. Batch process Unix time...
Git Cheatsheet
Quick reference for common Git commands. Search, copy, and u...