有两种方法 1,cat /etc/issue 2,sudo lsb_release -a 这个查询出来的结果比上面的那个全一些。 转载于:https://www.cnblogs.com/wangkongming/p/3427828.html