[linux] 查看centos或ubuntu的系统版本

centos版本

 cat  /etc/redhat-release

[root@iZt4nfi13rgw5yqxf67k84Z ~]# cat  /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
[root@iZt4nfi13rgw5yqxf67k84Z ~]# lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 7.9.2009 (Core)
Release:        7.9.2009
Codename:       Core

 

ubuntu版本

 

lsb_release -a

root@VM-0-4-ubuntu:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:        16.04
Codename:       xenia

 

[root@iZt4nfi13rgw5yqxf67k84Z ~]# cat /proc/version
Linux version 3.10.0-1160.31.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Thu Jun 10 13:32:12 UTC 2021

 

posted @ 2021-07-22 20:04  唯一客服系统开发笔记  阅读(337)  评论(0编辑  收藏  举报