Would you like to learn how to extract a file or directory from a TAR archive? In this tutorial, we are going to extract specific files from a large TAR file.

• Ubuntu 18
• Ubuntu 19
• Ubuntu 20

Equipment list

The following section presents the list of equipment used to create this tutorial.

As an Amazon Associate, I earn from qualifying purchases.

Tutorial Linux - Extracting files or directories from a TAR archive

Create a large TAR file.

Copy to Clipboard

List the content of the TAR file.

Copy to Clipboard

List the content of a specific directory in the TAR file.

Copy to Clipboard

Search for files in the TAR file.

Copy to Clipboard

Extract a file from the TAR archive.

Copy to Clipboard

Extract multiple files from the TAR archive.

Copy to Clipboard

Extract a directory from the TAR archive.

Copy to Clipboard

Extract multiple directories from the TAR archive.

Copy to Clipboard

Congratulations! You are able to extract files or directories from a TAR archive.