This question already has an answer here:

I have several RPi's on my network. How do I figure out what model any given RPi is?

marked as duplicate by Ghanima Feb 25 at 20:14

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • After checking, I agree that this is a duplicate and that raspberrypi.stackexchange.com/questions/61699/… has better answers. Its only flaw is that the title is too restrictive and doesn't handle (e.g.) Pi Zero. I'll edit its title and delete this one. – fearless_fool Feb 27 at 12:03
  • When I tried to delete this post, I got ominous warnings from SO, especially since it's already gotten several upvotes. So I guess it stays for now. – fearless_fool Feb 27 at 12:08

From a shell window, type cat /proc/device-tree/model. For example:

$ cat /proc/device-tree/model
Raspberry Pi 3 Model B Rev 1.2

Not the answer you're looking for? Browse other questions tagged or ask your own question.