>> To install Zip: Open you terminal (CTRL+ALT+T) and enter the command below:
sudo apt-get install zip gzip tar
>> To Zip:
zip -r compressed_filename.zip foldername
- r: recursive
- compressed_filename.zip: filename of the compressed-file that you are creating
- folder_name: filename of folder that you want to compress
>> To Unzip:
Zip stores relative path names by default. There are several parameter-options available for zip. For that read: the manual (man zip). For a starting this will do.
Most often you will see .tar.gz endings in linux-world. That's the product of two tools: TAR (the tape archiver) and GZIP (the GNU-Zip). Tar has got the call option to automatically gzip/gunzip files after "taring".
tar -cvzf may_arch.tar.gz my_folder
- -c means "create"
- -v means "verbose" (sometimes bothersome and slowing down...)
- -z means "use (GNU)zip"
- -f XYZ declares the name of the output file. (You should chose a helping name like XYZ.tar.gz)
To extract you simply use -x (eXtract) instead of -c (Create):
tar -xvzf may_arch.tar.gz