uname

output operating system name, …

uname [-amnprsv]

-s operating system name. default
-n nodename (the nodename may be a name that the system is known by to a communications network).
-m machine hardware name.
-p processor architecture name.
-r release of operating system
-v version of operating system
-a almost all i.e. mnrsv (no -p)

Examples:

uname -ap
Darwin smacpro 18.2.0 Darwin Kernel Version 18.2.0: Sun Oct  7 14:21:57 PDT 2018; root:xnu-4903.221.2~12/RELEASE_X86_64 x86_64  i386
Darwin smacpro 18.2.0 Darwin Kernel Version 18.2.0: Mon Nov 12 20:24:31 PST 2018; root:xnu-4903.231.4~1/RELEASE_X86_64 x86_64  i386 (12/14/18)

uname -a
Linux slmp-550-17.slc.westdc.net 2.6.32-896.16.1.lve1.4.49.el6.x86_64 #1 SMP Fri Jan 5 05:15:23 EST 2018 x86_64 x86_64 x86_64 GNU/Linux
uname -mnrsv
Linux slmp-550-17.slc.westdc.net 2.6.32-896.16.1.lve1.4.49.el6.x86_64 #1 SMP Fri Jan 5 05:15:23 EST 2018 x86_64
uname -mnrsvp
Linux slmp-550-17.slc.westdc.net 2.6.32-896.16.1.lve1.4.49.el6.x86_64 #1 SMP Fri Jan 5 05:15:23 EST 2018 x86_64 x86_64


Linux pi93graf 4.14.71+    #1145     Fri Sep 21 15:06:38 BST 2018 armv6l GNU/Linux (pi zero w)

Linux dapi2    4.19.50+ #896 Thu Jun 20 16:09:52 BST 2019 armv6l GNU/Linux
Linux pib8     4.14.79-v7+ #1159 SMP Sun Nov  4 17:50:20 GMT 2018 armv7l unknown


cat /proc/cpuinfo
On Raspberry Pi
 processor   : 0

 model name  : ARMv6-compatible processor rev 7 (v6l)
 BogoMIPS    : 697.95
 Features    : half thumb fastmult vfp edsp java tls 
 CPU implementer : 0x41
 CPU architecture: 7
 CPU variant : 0x0
 CPU part    : 0xb76
 CPU revision    : 7
 
 Hardware    : BCM2835
 Revision    : 9000c1
 Serial      : 0000000098490ec6
On onion omega: system type : MediaTek MT7688 ver:1 eco:2 machine : Onion Omega2 Dash processor : 0 cpu model : MIPS 24KEc V5.5 BogoMIPS : 385.84 wait instruction : yes microsecond timers : yes tlb_entries : 32 extra interrupt vector : yes hardware watchpoint : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb] isa : mips1 mips2 mips32r1 mips32r2 ASEs implemented : mips16 dsp shadow register sets : 1 kscratch registers : 0 package : 0 core : 0 VCED exceptions : not available VCEI exceptions : not available
pinout
.-------------------------.
| oooooooooooooooooooo J8 |
| 1ooooooooooooooooooo   |c
---+       +---+ PiZero W|s
 sd|       |SoC|   V1.1  |i
---+|hdmi| +---+  usb pwr |
`---|    |--------| |-| |-'

Revision           : 9000c1
SoC                : BCM2835
RAM                : 512Mb
Storage            : MicroSD
USB ports          : 1 (excluding power)
Ethernet ports     : 0
Wi-fi              : True
Bluetooth          : True
Camera ports (CSI) : 1
Display ports (DSI): 0

J8:
   3V3  (1) (2)  5V    
 GPIO2  (3) (4)  5V    
 GPIO3  (5) (6)  GND   
 GPIO4  (7) (8)  GPIO14
   GND  (9) (10) GPIO15
GPIO17 (11) (12) GPIO18
GPIO27 (13) (14) GND   
GPIO22 (15) (16) GPIO23
   3V3 (17) (18) GPIO24
GPIO10 (19) (20) GND   
 GPIO9 (21) (22) GPIO25
GPIO11 (23) (24) GPIO8 
   GND (25) (26) GPIO7 
 GPIO0 (27) (28) GPIO1 
 GPIO5 (29) (30) GND   
 GPIO6 (31) (32) GPIO12
GPIO13 (33) (34) GND   
GPIO19 (35) (36) GPIO16
GPIO26 (37) (38) GPIO20
   GND (39) (40) GPIO21

For further information, please refer to https://pinout.xyz/

cat /proc/device-tree/model Raspberry Pi Zero W Rev 1.1 or dapi2 Raspberry Pi Model B Rev 2 or daMonitor Raspberry Pi 3 Model B Plus Rev 1.3
SEE hostname(1), machine(1), sw_vers(1), uname(3)

on linux, as of 12/14/18 on pi ver B (b8:27:eb:69:9b:bc)

cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"