2022-06-25 661
本文操作环境:centos 6.5系统
linux怎么查看是不是centos版本
1、一行很简单的命令,就可以让立刻知道,是centos还是ubuntu,还是debian。
[root@test ~]#cat /etc/issue CentOS release 6.5 (Final) Kernel \r on an \m BashCopy
2、登录到服务器执行 lsb_release -a 即可列出所有版本信息
LSB是Linux Standard Base的缩写,lsb_release命令用来显示LSB和特定版本的相关信息。
如下:
[root@test ~]# lsb_release -a LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch Distributor ID: CentOS Description: CentOS release 6.5 (Final) Release: 6.5 Codename: Final BashCopy
注: 这个命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版。
3、登录到linux执行 cat /etc/redhat-release
[root@test ~]# cat /etc/redhat-release CentOS release 6.5 (Final) BashCopy
注:这种方式下可以直接看到具体的版本号,比如 AS4 Update 1。 只对 Redhat Linux有效!
原文链接:https://77isp.com/post/1509.html
=========================================
https://77isp.com/ 为 “云服务器技术网” 唯一官方服务平台,请勿相信其他任何渠道。
数据库技术 2022-03-28
网站技术 2022-11-26
网站技术 2023-01-07
网站技术 2022-11-17
Windows相关 2022-02-23
网站技术 2023-01-14
Windows相关 2022-02-16
Windows相关 2022-02-16
Linux相关 2022-02-27
数据库技术 2022-02-20
抠敌 2023年10月23日
嚼餐 2023年10月23日
男忌 2023年10月22日
瓮仆 2023年10月22日
簿偌 2023年10月22日
扫码二维码
获取最新动态