5

I have a bunch of photos, around 2 GB size to be precise. I need to download these images but I have to zip it first.

Using zip command to compress the image files takes so much time to complete. I want to only zip those images in command line without compression. Is this possible?

  • 2
    If you don't want to compress them, then why do you need to zip them? – psusi Nov 20 '17 at 4:02
  • @psusi I want to download the images but compressing these images would take a lot of time to complete. So I just need a zipped file for all the images without compressing it (as compression makes the zip operation slow). – Atillo Regner Rex Nov 20 '17 at 5:01
  • What is wrong with just downloading the files as is? No need to waste disk space on a big archive then. – psusi Nov 20 '17 at 23:17
9

This is what tarball archives are for.

tar -c -f archive.tar file directory/

This creates an uncompressed archive.

| improve this answer | |
6

With regular zip:

zip -0 -r mydirectory.zip mydirectory
| improve this answer | |
1

You can use the following command (taken from the 7zip docs):

7z a archive.zip *.jpg -mx0

It should be available via the p7zip-full package.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.