Read more

Unpack a .tar.gz archive

Henning Koch
June 12, 2011Software engineer at makandra GmbH

You can unpack a .tar.gz file into the current directory like this:

tar -xzvf archive.tar.gz
Illustration UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
Read more Show archive.org snapshot

The options used are

-x
: Extract

-z
: Unzip

-f
: Process a file input

-v
: Be verbose, i.e. print each extracted file

Side notes:

  • The dash is optional (tar xzvf ... works as well).
  • For .tar.bz2 archives, use j instead of z (tar xjvf ...`)
  • In order to create a *.tar.gz archive, use -c flag instead of -x flag.
  • The order of parameters matters.
Posted by Henning Koch to makandra dev (2011-06-12 20:12)