86
readers helped!

This helped me

How to Extract Tar Files in Linux

Extract files from TAR archives with and without compression (GZip).

Steps

  1. How.com.vn English: Step 1 Open the terminal.
  2. How.com.vn English: Step 2 Type tar.
  3. How.com.vn English: Step 3 Type a space.
  4. How.com.vn English: Step 4 Type -x.
  5. How.com.vn English: Step 5 If the tar file is also compressed with gzip (.tar.gz or .tgz extension), type z.
  6. How.com.vn English: Step 6 Type f.
  7. How.com.vn English: Step 7 Type a space.
  8. How.com.vn English: Step 8 Type the name of the file that you wish to extract.
  9. How.com.vn English: Step 9 Press enter.
    Advertisement

Community Q&A

Search
Add New Question
  • Question
    When I try to extract the Tar file I get the message, "No such file or directory." What does this mean?
    How.com.vn English: Community Answer
    Community Answer
    You're probably referencing the file incorrectly. Check the location that the terminal is open in, and the relevancy of the file's location to it.
  • Question
    What if the file is on a USB drive?
    How.com.vn English: Living Concrete
    Living Concrete
    Top Answerer
    You will need to change the terminal's working directory to the USB drive.
  • Question
    What if the file is in my Home directory?
    How.com.vn English: Living Concrete
    Living Concrete
    Top Answerer
    It does not matter where the file is located. As long as you change your terminal's working directory to the directory that contains the TAR file, the extraction will work just fine.
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit

      Advertisement

      Video

      Tips

      Advertisement

      Warnings

      • Extracting an archive may overwrite files in some locations if the archive has a file of the same name.
      Advertisement

      About this article

      How.com.vn is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 11 people, some anonymous, worked to edit and improve it over time. This article has been viewed 352,973 times.
      How helpful is this?
      Co-authors: 11
      Updated: July 8, 2019
      Views: 352,973
      Thanks to all authors for creating a page that has been read 352,973 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement