How to create and extract a .tar.gz archive using command line

  Sep 15, 2016

How to create and extract a .tar.gz archive using command line

Solved 0
2 years ago 1 Answer 0 views

Answers ( 1 )

  1. 2 years ago

    To create a tar.gz archive from a given folder you can use the following command

    tar -zcvf tar-archive-name.tar.gz source-folder-name
    

    To extract a tar.gz compressed archive you can use the following command

    tar -zxvf tar-archive-name.tar.gz1
    

Your Answer