Most common archive types are zip(ending with .zip), tar(.tar), Tar+Gunzip (.tar.gz), Bzip(.bz1) and Rae(.rar). unzip command is used to extract a ZIP folder. From the below example, unzip command is used to extract the folder name as newfolder.
unzip newfolder.zip
Find the below command to compress the files or folders using SSH
zip -r filename.zip file-name