Linux Bash Script To ZIP contents of Folders

To extract contents of compressed file, use the following syntax:

tar -xvf <file.tar.gz> <folder_name> -C <destination_directory>