cat /sys/firmware/devicetree/base/model;echo
I love my Pi hardware and this is the easiest way I found to identify what version I have. Be it to figure out compatibility, what CPU/power it has, or you just want to know without cracking open the case.
Thanks to lbro100 for this tip!