cli-tarHow do I extract a tar.gz file using the command line?
Extracting a tar.gz file using the command line requires the use of the tar command. This command is used to create, modify, and extract tar archives.
The command to extract a tar.gz archive is as follows:
tar -xzvf <filename>.tar.gz
This command will extract the contents of the tar.gz archive to the current directory.
The command parts are as follows:
tar: The tar command is used to create, modify, and extract tar archives.-xzvf: The-xzvfoptions are used to extract the tar archive.<filename>.tar.gz: This is the name of the tar.gz archive that you want to extract.
Helpful links
More of Cli Tar
- How can I fix an unexpected end of file error when compressing a file with tar and gzip?
- How do I use gzip, tar, and zip to compress files?
- How do I use the command line to tar and zip a file?
- How do I use the Unix tar zip command?
- How do I use tar gzip with a password?
- How do I use the Unix tar xvf command to extract files?
- How do I use the shell to tar and zip files?
- How do I use a password to compress files with Unix tar?
- How do I remove the absolute path when using the Unix tar command?
- How do I create a tar.zip file in Unix?
See more codes...