cli-tarHow do I unzip a tar file using the command line?
Unzipping a tar file using the command line is a simple process. The following command will unzip the tar file:
tar -xvf <file-name.tar>
This will extract the contents of the tar file in the same directory.
Code explanation
tar
: The program used to unzip the tar file.-xvf
: The flags used to tell tar to extract and verbosely list the contents of the tar file.<file-name.tar>
: The name of the tar file to be unzipped.
For more information on the tar command, see the GNU tar manual.
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...