24

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

1
  • 1
    If you want to have a great Ubuntu experience, then do not run an unstable development alpha release (13.04) and do not install software from tar.gz files when you are new to Ubuntu. Both can easily make you believe Ubuntu is unstable, which it is not.
    – Takkat
    Feb 27, 2013 at 19:34

3 Answers 3

33
tar -xzf [filename]

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

2
  • Do I have to put the filename in brackets? Feb 27, 2013 at 19:29
  • 1
    no, you do not need the brackets.
    – Ruediger
    Feb 27, 2013 at 19:31
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
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.

Not the answer you're looking for? Browse other questions tagged .