zip in linux tar code example
Example 1: linux zip a directory
zip -r filename.zip /path/to/folder1
Example 2: extract tar.gz linux command line
tar xvzf file.tar.gz
zip -r filename.zip /path/to/folder1
tar xvzf file.tar.gz