使用命令 lsb_release -a
1 [root@67 ~]# lsb_release -a 2 LSB Version: :core-4.1-amd64:core-4.1-noarch 3 Distributor ID: CentOS 4 Description: CentOS Linux release 7.6.1810 (Core) 5 Release: 7.6.1810 6 Codename: Core
更多方法,参照:
https://www.cnblogs.com/wzk-0000/p/7483262.html