Linux: Tar - create / extract .tar.gz compressed archive files

How to use tar to create compressed .tar.gz archive files.

tar –cvzf example.tar.gz <...file list>

How to use tar to extract archived files from a .tar.gz zip file.

tar –xvzf example.tar.gz

For more information, see tar commandline options.

6 / 2021