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.


Find the below command to compress the files or folders using SSH

 zip -r file-name

Tagged in: