Trim is what gets trimmed off cannabis buds after harvesting—it is mainly the resinous tips of buds, but sugar leaves, stems, and some chunks of flower might make their way into trim depending on how it was trimmed.
Shake is what falls off in your jar or bag after buds have been handled over time.