1

This question already has an answer here:

I intended to zip a directory, so I used:

gzip -r myfolder

When I checked the output, it has been zipped all the files within the directory and its subdirectories. It wasn't what I explected

How can I unzip these so many zipped files to their original state?

marked as duplicate by don_crissti, Community Oct 23 '18 at 15:45

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    Simply try to execute gunzip -r myfolder to decompress any .gz file found in myfolder's directory, including any subdirectory. Then try zip -r myfolder or tar -czf myfolder.tar.gz myfolder to create a single archive file containing everything in myfolder directory. – Jaleks Oct 23 '18 at 15:46
  • @Jaleks Thanks, however it seems zip -r myfolder do nothing – Ahmad Oct 23 '18 at 15:50
  • 1
    Sry, zip -r myfolder.zip myfolder would be it… – Jaleks Oct 23 '18 at 15:55

Browse other questions tagged or ask your own question.