How to identify your Raspberry Pi, maybe built in a nice and sealed box? Here is how:
$ cat /sys/firmware/devicetree/base/model;echo
Raspberry Pi Model B Rev 2
$
$ cat /sys/firmware/devicetree/base/model;echo
Raspberry Pi 3 Model B Rev 1.2
$
$ cat /sys/firmware/devicetree/base/model;echo
Raspberry Pi 3 Model B Plus Rev 1.3
$
Thanks for that, Markku. Added it to my list. 😉
I am frequently using the following two commands as well to get the versions of Raspbian and the kernel:
cat /etc/os-release
uname -a
Cheers, Johannes