sudo apt-get install gzip

Usage: tar [OPTION...] [FILE]...
GNU 'tar' saves many files together into a single tape or disk archive, and can
restore individual files from the archive.

x : Decompress
c : Bundling files
v : Display log
z : Using gzip compress file
f : Appoint name
p : Maintain a permission

Examples:
  tar -cf archive.tar foo bar  # Create archive.tar from files foo and bar.
  tar -tvf archive.tar         # List all files in archive.tar verbosely.
  tar -xf archive.tar          # Extract all files from archive.tar.
# Example
## Compress

tar -cvzf [Compressed file name] [File or folder name to be compressed]

tar -cvzf xxx.tar.gz [/folder or file]

## Decompress

tar -xvzf [decompress file name]