方法一:cat /etc/issue 或more /etc/issue
root@salt-master:~# cat /etc/issue
Ubuntu 16.04.2 LTS
l
方法二:lsb-release -a
root@salt-master:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial