How to Unzip Multiple Files with Command Line

It's a bit tricky to unzip multiple files with command line

Recently I’ve download a lot of zip files from the internet to my Raspberry Pi. After all download progress finished, I see the files and try to unzip them all. My first reflect is to type unzip *.zip just like any other standard unix command (rm, cp, etc.). But, to my surprise, it doesn’t work at all.

Take a look at the following snippet. This is an example output I get when I try to unzip multiple zip files with the wrong command.

$ unzip *.zip
caution: filename not matched:
caution: filename not matched:

So, how to solve this problem?

It’s actually pretty simple, just wrap the *.zip with apostrophe (') like the following snippet.

unzip '*.zip'

Since now the command is written correctly, here is the expected output.

$ unzip '*.zip'
  inflating: file-01.iso

  inflating: file-02.iso

  inflating: file-03.iso

3 archives were successfully processed.

It’s a success!

Thank you for reading, see you on my next tutorial.