24

I am new to Ubuntu and I would like to know how I extract a tar.gz file. Thanks!

Takkat
  • 144,580

3 Answers3

33
tar -xzf [filename]

will extract. To see the contents before extractring try tar -tvzf [filename]

Ruediger
  • 2,202
3

You can use the graphical tools, file roller, or the command line.

file roller

See https://help.ubuntu.com/community/File%20Roller

Or the command line:

tar xzvf file.tar.gz
Panther
  • 104,528
2

Right click on the tar.gz file and select the extract here option from the drop-down menu, and it will be extracted on the same folder as the compressed file.

agustibr
  • 1,675