cli-tarHow do I open a .tar.gz file using the command line?
Using the command line, you can open a .tar.gz file with the following command:
tar -xzvf filename.tar.gz
The command has four parts:
tar: This command is used to create, modify, and extract files from an archive.-x: This flag tellstarto extract the files from the archive.-z: This flag tellstarto uncompress the archive using gzip.-vf: This flag tellstarto be verbose and display the progress of the extraction.
The output of the command will look something like this:
x filename1
x filename2
x filename3
This indicates that the files filename1, filename2, and filename3 were successfully extracted from the archive.
Helpful links
More of Cli Tar
- How do I use tar in the Windows terminal?
- How do I use the command line to tar and zip files?
- How can I use tar commands to zip a file?
- How do I use the tar command line in Windows 10?
- How do I remove a file from a Unix tar archive?
- How do I create a gzip tar archive?
- How do I use the shell to tar and zip files?
- How do I compare Unix tar and zip files?
- How do I create a tar file using the command line?
- How do I use the command line to tar and zip a file?
See more codes...