Back to the command reference

gunzip

ArchivesBeginner In simulator In real Linux

Decompress .gz files

Name: gunzip = GNU unzip

You can practise it right away in the simulator, and use it in real Linux mode too.

Description

gunzip decompresses .gz files, like gzip -d, removing the compressed file (-k keeps it).

Syntax

gunzip [OPTION]... FILE...

Common options

-k / --keepKeep the compressed file
-c / --stdoutDecompress to standard output (as zcat)
-t / --testCheck that the file is intact
-f / --forceOverwrite existing files

Examples

  • $ gunzip app.log.gz

    Restores app.log

    Explain

Related