1. Linux Kernel Source Code查看版本
~/kernel$ vim Makefile
VERSION = 4
PATCHLEVEL = 1
EXTRAVERSION = 4
版本: 4.1.4
2. Linux系统版本
~$ uname -r
3.19.0-75-generic
$cat /proc/version
Linux version 3.19.0-75-generic (buildd@lcy01-31) (gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) ) #83~14.04.1-Ubuntu SMP Thu Nov 10 10:51:40 UTC 201
$cat /proc/sys/kernel/version
#123 SMP PREEMPT Thu Oct 12 18:12:48 CST 2017
$cat /proc/sys/kernel/osrelease
3.10.49
3. ADB查看版本
> adb shell "getprop | grep version"
[ro.build.version.release]: [7.1.1]
[ro.build.version.sdk]: [25]
[ro.build.version.security_patch]: [2017-01-01]
[ro.miui.ui.version.code]: [6]
[ro.miui.ui.version.name]: [V8]
Android 7.1.1, MIUI: V8.6