# to compress
tar -zcvf archive_name.tar.gz folder_to_compress
# to extract
tar -zxvf archive_name.tar.gz
# the "v" flag is for verbose and is not required
gzip test.txt
echo "<h1><center> This will bve zipped</h2></center>" > index.html # create file
cat index.html # just confirming the file is created and has content in it
zip index.zip index.html # this command will creaed a zipped version on the file index.html