To take a screenshot of a selected area, use Cmd-Shift-4; for an entire window use Cmd-Shift-4, then Space.

See all one-line tips.