Default Flashing zip file in terminal emulator

So I know you can flash an img file in terminal emulator, but how do you flash a zip file?
I am just a guy that is trying to learn a little coding and all. Don't go crying to your mommy that something I said was wrong.
Current: Nexus 7 running stock 4.4 (CM11 soon)
Retired: Kindle Fire running Jellybean CM10.1 / Android 4.2.2