How to Extract Tar Files in Terminal

Files with the ".tar" extension, sometimes called "tarballs," are a type of compressed archive, which means they contain several different files that have been compressed into one big file. Tar files are the most common format through which open-source software is distributed and are often used in UNIX-based operating systems such as Linux. While programs capable of extracting tar files exist, the most simple and common method of extraction is through the terminal.

Things You'll Need

  • .tar file
  • Terminal or quivalent UNIX program
Show More

Instructions

  1. Uncompressing Tar Files

    • 1

      Open the terminal and locate the directory in which your .tar file is stored.

    • 2

      Change to this directory in terminal using the cd command. To do this, simply type the characters "cd" into the terminal, followed by one blank space and then the directory. For example, "cd home/users/bin" will take the terminal to the /bin folder.

    • 3

      Once in the same directory as the .tar file, type the command "tar -zxvf filename.tar." Press "enter." This will decompress the .tar file into the original separate files.

Tips & Warnings

  • .tar files come in different subtypes such as .tar.gz and tar.z. All subtypes can be uncompressed using the terminal commands above; however, you must enter the correct file extension or terminal will be unable to find the file. To extract the .tar file into a directory other than the one it is stored in, add the command "-C /directoryname" between the "tar" and "-zxvf" terms of the command.

  • Always make sure your .tar file comes from a trusted source, as this format has been exploited by hackers in the past.

Related Searches:

Resources

Comments

You May Also Like

  • How to Unzip a GZ File in Linux

    GZ files are archive files compressed with the "gzip" program, similar to zip files. These archive files contain one or more files,...

  • How to Extract TAR Files in Linux

    In the Linux, a .TAR file is the equivalent of a .ZIP file in Windows. It is an archived file containing multiple...

  • How to Unzip a Tar.gz in Linux

    Tar is a file archive format that was originally used with magnetic tape storage systems. Unlike with other formats, tar archives are...

  • How to Unzip a Tar GZ File in Linux

    The .tar.gz file format is a compressed file format that is used on Linux operating systems to bundle files together for easier...

  • How to Extract TAR Files

    TAR files are directories that hold multiple data files. Though most TAR files are created on Unix-based computers, they can be extracted...

  • How to Tar a File in UNIX

    The common means with which to archive a batch of files within a UNIX system is by using the "tar" command. When...

  • How to Unzip in Terminal

    Type "unzip test.zip d/ myfiles" at the command line. This command will extract the contents of "test.zip" into the "myfiles" directory. Replace...

  • How to Use Tar XVF

    A tarfile is an archived file created with the Unix tar (tape archive) command. Originally used to back up files to tape...

  • How to Extract DMG in Windows

    Macintosh computers use the DMG file type for disk images, similar to the ISO and IMG file formats. The file holds information...

  • How to Unzip a Tar File on a Server

    How to Extract Tar Files in Terminal. Files with the ".tar" extension, sometimes called "tarballs," are a type of compressed archive, which...

  • How to Unzip a Tarball

    A tarball is a group of files archived using the tar (tape archive) utility. This utility is available on the Linux and...

  • How to Extract a Jar File

    A .jar file is a Java archive file. It is based on the ZIP and ZLIB compression formats. It was designed to...

  • How to Unzip a Tar.GZ Unix File

    Unix-based operating systems such as Linux and Mac OS X use ".tar.gz" files to combine and compress multiple files for storage purposes...

  • How to Use TAR to Unzip

    A "tar" file is most commonly seen on Linux or Unix operating systems. It is a collection of files, similar to a...

  • How to Install an Unzip for Linux

    The unzip command on Linux extracts zip files, which are compressed archives containing one or more other files. Zip files are often...

  • How to Install Tar.Bz2 Files in Ubuntu

    In the days before computer users could store files on compact discs, or even 3.5-inch floppy disks, they used magnetic tape cassettes...

  • How to Extract Bin Files in Ubuntu

    Ubuntu contains a graphical user interface that allows for a user-friendly environment. Most programs install through BIN files in the operating system...

  • How to Extract Lithium Strips From Batteries

    Originally a high-end option to power electronics, lithium batteries now come in standard sizes, such as AA and 9-volt. While they are...

  • How to Make a Tar.GZ File

    A tar (tape archive) file is a common Linux/Unix archive format. As an archive, it simply creates one file that contains many...

  • What Is the File Extension .Tar?

    File archiving is the term given to duplicating or grouping uncommonly accessed documents together in order to preserve them for future use,...

Related Ads

Featured