Fenghe's Blog

How to Unzip a tar File using Terminal

Sometimes you may get some source code file named xxx.tar.gz, which is actually a kind of compressed file. Then how to extract it? This post will explain it in detail.

If you Google unzip tar.gz, following is what you will get:

$ tar -xvzf file.tar.gz


I’ve been using this for a while and I am recently wondering about the parameters xvzf, then I Googled. And what I’ll explain in detail.

In fact, x, v, z, f represent different meanings themselves as following:

  • x: extract the file
  • v: “verbose”, list the extracted files one by one



  1. https://www.interserver.net/tips/kb/extract-tar-gz-files-using-linux-command-line/

(Still editing)

Leave a Reply

Your email address will not be published. Required fields are marked *