Navigate to the desired source directory using
cd
Run the following command:
for directory in */; do zip -r "/destination/path/${directory%/}.zip" "$directory"; done
Navigate to the desired source directory using
cd
Run the following command:
for directory in */; do zip -r "/destination/path/${directory%/}.zip" "$directory"; done