How to Tell Which Raspberry Pi I Have?
cat /sys/firmware/devicetree/base/model or cat /proc/cpuinfo
Source
How to see Raspberry Pi OS version on Raspberry PI?
cat /etc/os-release