cli-tarHow do I decompress a tar.gz file using gzip?
Decompressing a tar.gz file using gzip is a simple process. First, the tar.gz file must be downloaded and saved to a location on the computer. Then, the following command can be used to decompress the file:
$ tar -xzvf <file_name>.tar.gz
This command will extract the file from the tar.gz archive. The parts of this command are:
tar: The tar command is used to create and extract archives from a file or directory.-xzvf: This option is used to extract the files from the archive.<file_name>: This is the name of the tar.gz file.
The output of the command should look something like this:
$ tar -xzvf <file_name>.tar.gz
x <file_name>/
x <file_name>/<file_1>
x <file_name>/<file_2>
...
The files will be extracted from the tar.gz archive and saved in the same directory as the archive.
Helpful links
More of Cli Tar
- How do I use the command line to create a tar file?
- How do I use the tar command on Windows?
- How do I use the command line to tar and zip a file?
- How do I use the Unix tar xzvf command?
- How do I use tar gzip with a password?
- How do I use the Unix tar xvf command to extract files?
- How to use tar shell to integrate with Vipps?
- How do I use gzip and tar in Linux?
- How do I compress a file using gzip and tar.xz?
- How do I use the command line to tar and zip files?
See more codes...