Cramming is triage, not a substitute for studying
You can't realistically master an entire course in a day or two, so the goal shifts from complete coverage to picking the highest-value topics. Deciding what to skip is often more valuable to your final score than deciding what to review.
Past mistakes are your fastest cramming resource
A log of questions you've gotten wrong before is far more efficient to review than a full textbook, because it's pre-filtered to exactly the material you struggle with. Keeping that log throughout the term is what makes a good cramming session possible in the first place.
Frequently Asked Questions
Isn't it better to stay up all night and cover everything?
Usually not. Sleep deprivation reduces both memory recall and concentration, which tends to cause more mistakes on exam day than the extra material you crammed in was worth. A short block of real sleep is generally the better trade.
Does cramming work better for some subjects than others?
Yes -- subjects that are heavy on memorization tend to respond reasonably well to a short, focused cramming session, while subjects that require deeper conceptual understanding or applying ideas to new problems are much harder to pick up in a day and depend more on the studying you did earlier.