How to create a tar.gz

$ tar -czvf archive.tar.gz [target]

Command
tar
Description
Command options to create a gzipped tar archive (.tar.gz). Usage: tar -czvf archive.tar.gz target_dir
Deep Dive
Explanation of flags: -c: Create -z: gZip compression -v: Verbose (show progress) -f: File (specify filename) Combine them as -czvf.