11

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 04: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 05: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

3 Answers3

17

With regular zip:

zip -0 -r mydirectory.zip mydirectory
yeeking
  • 318
14

This is what tarball archives are for.

tar -c -f archive.tar file directory/

This creates an uncompressed archive.

Videonauth
  • 33,845
jdwolf
  • 1,096
2

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.

rlee827
  • 177