How to Zip and Unzip via SSH

  1. zip archive-name.zip your-file.php your-file.php your-file.php

    In order to compress a directory, use this syntax:

    zip -r archive-name.zip /directory-name
  2. This command is used for .zip file decompression:

    unzip archive-name.zip

Source