$ cat /proc/version Linux version 3.10.0-862.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Fri Apr 20 16:44:24 UTC 2018
Linux版本号:Linux version 3.10.0-862.el7.x86_64
GCC版本号:gcc version 4.8.5
CentOS版本号:Red Hat 4.8.5-28
使用命令 uname -a 查看
1 2
$ uname -a Linux docker67 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
查看是CentOS还是Ubuntu
1 2
$ cat /etc/redhat-release CentOS Linux release 7.9.2009(core)