How to Extract the Contents of a Tar File in Linux

Table of contents:

How to Extract the Contents of a Tar File in Linux
How to Extract the Contents of a Tar File in Linux
Anonim

This article shows you how to extract files from a compressed or uncompressed TAR archive (GZip).

Steps

Extract Tar Files in Linux Step 1
Extract Tar Files in Linux Step 1

Step 1. Open a "Terminal" window

Extract Tar Files in Linux Step 2
Extract Tar Files in Linux Step 2

Step 2. Type the command

tar

.

Extract Tar Files in Linux Step 3
Extract Tar Files in Linux Step 3

Step 3. Press the space bar once

Extract Tar Files in Linux Step 4
Extract Tar Files in Linux Step 4

Step 4. Add the parameter

-x

.

Extract Tar Files in Linux Step 5
Extract Tar Files in Linux Step 5

Step 5. If the TAR file to be processed has been compressed with gzip (if it has the extension ".tar.gz" or ".tgz"), also add the parameter

z

.

Extract Tar Files in Linux Step 6
Extract Tar Files in Linux Step 6

Step 6. Enter the parameter

f

.

Extract Tar Files in Linux Step 7
Extract Tar Files in Linux Step 7

Step 7. Press the space bar once

Extract Tar Files in Linux Step 8
Extract Tar Files in Linux Step 8

Step 8. Now type in the name of the TAR file to be decompressed

Extract Tar Files in Linux Step 9
Extract Tar Files in Linux Step 9

Step 9. Press the "Enter" key

Advice

  • If you want a complete report of all the operations that are carried out in the process of extracting data from the archive to be generated on the screen, add the parameter

    v

Recommended: