How can I tell what board I'm using from Linux?

I have a Linux terminal running on a board, but I need to know what board I’m currently using. How can you tell which board you’re on?

You can use the following command from the Linux console to determine what board you are running on:
cat /proc/device-tree/model.