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 tellstar
to extract the files from the archive.-z
: This flag tellstar
to uncompress the archive using gzip.-vf
: This flag tellstar
to 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 can I use tar commands to zip a file?
- How do I use the command line to tar and zip a file?
- How do I use the shell to tar and zip files?
- How do I use the Unix tar zip command?
- How do I create a tar.zip file in Unix?
- How do I use the command line to tar and zip files?
- 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 xzvf command?
- How do I use the command line to tar and zip a file?
See more codes...