If you want to find out which Apple model you are using from within Linux, you can issue the following command:
cat /proc/cpuinfo