Command+Shift+4 on mac. And on Ubuntu there was something too, but I’ve forgotten the combo
This is what Windows 10 does when you hit print screen on its own (as of a recent'ish update).
Then there's also:
alt + print screen to automatically capture the focused window.
And ctrl + print screen to capture all monitors instead of the focused window.