您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息
三六零分类信息网 > 大同分类信息网,免费分类信息发布

查看linux是centos还是ubuntu的方法

2025/9/5 23:21:13发布37次查看
查看linux是centos还是ubuntu的方法
以下总结了4种区分centos和ubuntu系统的方法。
1、lsb_release -a
如果是想查看你的linux系统是ubuntu还是centos,可以使用lsb_release -a命令,lsb_release -a命令可以列出你的linux系统是哪个linux发行版,它还可以列出具体是第几个版本。(推荐:linux使用教程)
2、cat /etc/redhat-release && cat /etc/lsb-release
radhat或centos存在: /etc/redhat-release 这个文件【 命令 cat /etc/redhat-release 】
ubuntu存在 : /etc/lsb-release 这个文件 【命令 cat etc/lsb-release 】
3、apt-get && yum
有yum的就是centos【yum -help】
有apt-get的就是ubuntu 【apt-get -help】
4、cat /etc/issue
有ubuntu字样为ubuntu,没有则是centos
以上就是查看linux是centos还是ubuntu的方法的详细内容。
大同分类信息网,免费分类信息发布

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product