You need to do following to unzip a file in moodle:
- Ensure you have php zip module installed. (php -m | grep zip)
- Go to your private files
- upload a zip file
- Click on uploaded zip file icon
- You should see unzip button like below.
- Click on unzip and it will unzip file and create a folder with all file.
Hope this helps.