由于不愿意记CENTOS的查看版本号命令,每次查看CENTOS的版本号,都要去百度里搜一下,这里整理一下,以后就不用再百度了
查看centos版本cat /etc/issue
[root@localhost ~]# cat /etc/issue CentOS Linux release 7.9.2009 Kernel r on an m
cat /etc/redhat-release
[root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core)查看内核linux版本
cat /proc/version
[root@localhost ~]# cat /proc/version Linux version 3.10.0-1160.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Mon Oct 19 16:18:59 UTC 2020 [root@localhost ~]#
uname -a
[root@localhost ~]# uname -a Linux localhost 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux [root@localhost ~]#
uname -r
[root@localhost ~]# uname -r 3.10.0-1160.el7.x86_64 [root@localhost ~]#
如有问题,欢迎大家留言沟通,点赞支持!!!



