前言
centos是linux发型版本之一,ubuntu是一个桌面应用为主的linux操作系统,两个版本长相很相同,但是他们之间还有存在区别的
查看linux是ubuntu还是centos
方式一:
radhat或centos存在: /etc/redhat-release 这个文件【 命令 cat /etc/redhat-release
】
ubuntu存在 : /etc/lsb-release 这个文件 【命令 cat etc/lsb-release
】
方式二:
看看安装指令,
有yum的就是Centos【yum -help
】
有apt-get的就是Ubuntu 【apt-get -help
】
通过上面两种方法就能判断linux是Ubuntu版本还是centos了。