执行cat /etc/redhat-release ,例如如下:
[root@tg ]# cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core)