Compress a file and replace it with a `.gz` version.
Section: Archives Compression and Checksums
Compress file with gzip
bash
bash
gzip large.logExplanation
Simple and widely supported compression format.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Archives Compression and Checksums