# How to zip sub-folders as individual folder.zip in COLAB?

**URL:** <https://onehack.st/t/how-to-zip-sub-folders-as-individual-folder-zip-in-colab/91352>\
**Category:** Discussion & Solutions\
**Tags:** solved\
**Created:** [June 11, 2020, 11:46am UTC](https://onehack.st/t/how-to-zip-sub-folders-as-individual-folder-zip-in-colab/91352 "2020-06-11T11:46:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adnan\_Catper](https://onehack.st/user_avatar/onehack.st/adnan_catper/32/18110_2.png) [@Adnan\_Catper](https://onehack.st/u/Adnan_Catper)\
**Post date:** [June 11, 2020, 11:46am UTC](https://onehack.st/t/how-to-zip-sub-folders-as-individual-folder-zip-in-colab/91352/1 "2020-06-11T11:46:11Z")

</div>

Hi guys;

i need your help to zip folders in colab. I am using zip command to make a zip of individual folder but i have got many sub-folders to zip. So whats easiest method to create all sub-folders as individual zip

For example;

i have sub-folders like;  
Vol1  
Vol2  
Vol3  
Vol4  
… and so on

and i want them to be like this

```
Vol1
Vol1.zip
Vol2
Vol2.zip
Vol3
Vol3.zip
and so on...

```

currently im using this command to make a zip for single folder  
!zip -r “/content/drive/Shared drives/Name/uploads/100 Volumes of Music/vol1.zip” “/content/drive/Shared drives/Name/uploads/100 Volumes of Music/ Vol. 1/”

---

<div class="post-metadata">

**Author:** ![Adnan\_Catper](https://onehack.st/user_avatar/onehack.st/adnan_catper/32/18110_2.png) [@Adnan\_Catper](https://onehack.st/u/Adnan_Catper)\
**Post date:** [June 14, 2020, 6:50am UTC](https://onehack.st/t/how-to-zip-sub-folders-as-individual-folder-zip-in-colab/91352/2 "2020-06-14T06:50:40Z")

</div>

plz guys..  
help me
