You have a directory full of important folders, and you want each one compressed separately. Doing this by hand would take waaay to much time. Of course, we can do this in terminal, and with one line of code (sweet!) so it’s easy to use.
For this we use the “Find” command built in into our computer. From there we’ll have two choices, to use compress it to a zip file for a dmg file.