Comments on How to extract .tar.gz archive?
Parent
How to extract .tar.gz archive?
+1
−0
.tar.gz is a pretty common archive format. How to extract its contents, "unzipping" it in the command line?
Post
+0
−0
tar can do it all:
$ tar --extract --ungzip --one-top-level --file archive.tar.gz
That will result in a directory named according to the archive (so just archive in this case) containing the extracted files. The original archive.tar.gz is not consumed.
For more info, checkout the (extensive) official documentation.
3 comment threads
Obligatory XKCD
(2 comments)
There is also a short form
(2 comments)
It won't create a directory
(3 comments)

0 comment threads