美文网首页
centos7 查看操作系统版本

centos7 查看操作系统版本

作者: 淼哥1986 | 来源:发表于2020-04-15 18:04 被阅读0次

1.cat /etc/redhat-release

[root@localhost app]# cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)

2.uname -a

[root@localhost app]# uname -a
Linux localhost.localdomain 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

3.cat /proc/version

[root@localhost app]# 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

相关文章

网友评论

      本文标题:centos7 查看操作系统版本

      本文链接:https://www.haomeiwen.com/subject/uykhvhtx.html