Extract Tar Files in Linux
Extract files from TAR archives with and without compression (GZip).
Contents
[hide]Steps
- Open the terminal.
- Type
tar
. - Type a space.
- Type
-x
. - If the tar file is also compressed with gzip (.tar.gz or .tgz extension), type
z
. - Type
f
. - Type a space.
- Type the name of the file that you wish to extract.
- Press enter.
Tips
- For verbose output (look it up), add
v
to the list of options.
Warnings
- Extracting an archive may overwrite files in some locations if the archive has a file of the same name.