Extract an entire archive (tar.gz)

$ tar -zxvf backup.tar.gz

Arguments and descritions
-z : Work on gzip compression automatically when reading archives.
-x : Extract archives.
-v : Produce verbose output i.e. display progress and extracted file list on screen.
-f : Read the archive from the archive to the specified file. In this example, read backups.tar.gz archive.
-t : List the files in the archive.

Tar Help

$ tar --help

Tar documentation

Share This