gzip
ArchivesBeginner In simulator In real LinuxCompress files with gzip (replaces the original)
Name: gzip = GNU zip
You can practise it right away in the simulator, and use it in real Linux mode too.
Description
gzip compresses files with DEFLATE into .gz, removing the original (-k keeps it). It handles single files; for directories, tar them first (.tar.gz). Fast and universal, it is the most common format on Linux.
Syntax
gzip [OPTION]... FILE...Common options
| -d / --decompress | Decompress (same as gunzip) |
| -k / --keep | Keep the original |
| -c / --stdout | Write to standard output and leave the file alone |
| -9 / --best | Best compression |
| -1 / --fast | Fastest (least compression) |
| -r / --recursive | Recurse into directories |
| -l / --list | Show sizes and the compression ratio |
| -t / --test | Check that the file is intact |
| -f / --force | Force (overwrite existing files and so on) |
| -v / --verbose | Show the ratio for each file |