Use the following commands to compress your files using terminal. First, make sure you have Zip already installed in your system.
>> To install Zip: Open you terminal (CTRL+ALT+T) and enter the command below:
>> To Zip:
where:
>> 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".
where:
To extract you simply use -x (eXtract) instead of -c (Create):
>> 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
where:
- r: recursive
- compressed_filename.zip: name of your .zip folder you want to create. Example: magento-file-sys.zip
- folder_name: name of the folder that you want to compress
>> To Unzip:
unzip my_arch.zip
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
where:
- -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
No comments:
Post a Comment
Thank you for your Feedback!
www.evagabond.me