标题: 怎样用linux命令知道系统是ubuntu还是redhat或者其它的系统? [打印本页] 作者: linda 时间: 2016-7-20 17:26 标题: 怎样用linux命令知道系统是ubuntu还是redhat或者其它的系统?
cat /proc/version
Ubuntu 14:Linux version 4.2.0-27-generic (buildd@lcy01-23) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 UTC 2016
CentOS 7:Linux version 3.10.0-229.el7.x86_64 ([email protected]) (gcc version 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC) ) #1 SMP Fri Mar 6 11:36:42 UTC 2015