cli-tarHow do I unzip a tar.gz file using the command line?
To unzip a tar.gz
file using the command line, use the tar
command followed by the -xzf
option.
The syntax for this command is:
tar -xzf filename.tar.gz
This command will extract the files in the filename.tar.gz
archive in the current directory.
The parts of the command are:
tar
: The tar command is used to create and manipulate archive files in Linux/Unix.-xzf
: This option tells tar to extract the files.filename.tar.gz
: This is the name of the file that you want to extract.
For more information and examples of using the tar
command, see the GNU tar manual.
More of Cli Tar
- How do I use the Unix tar zip command?
- How do I use the Unix tar xvf command to extract files?
- How do I use the command line to tar and zip files?
- How do I use the command line to tar and zip a file?
- How do I use the command line to tar and distribute files?
- How do I use the Unix tar xzvf command?
- How do I extract files from a tar archive using the cmd command?
- How do I use the command line to tar and zip a file?
- How can I use the CLI tar yarn command to compress files?
- How do I use the tar command to compress files with gzip?
See more codes...