f tar .tar.gz code example
Example 1: untar tar.gz
tar -xzf file.tar.gz
Example 2: tar.gz files
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
tar -xzf file.tar.gz
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file