linux 版本三种常用方法
时间:2022-05-19 11:47:25
Linux是一套免费使用和自由传播的类Unix操作系统,是一个基于POSIX和UNIX的多用户、多任务、支持多线程和多CPU的操作系统。它能运行主要的UNIX工具软件、应用程序和网络协议。它支持32位和64位硬件。Linux继承了Unix以网络为核心的设计思想,是一个性能稳定的多用户网络操作系统。下面,小编就来说说linux 版本三种常用方法。
linux
1) 登录到服务器执行 lsb_release -a ,即可列出所有版本信息,例如:
[root@3.5.5Biz-46 ~]# lsb_release -a
LSB Version: 1.3
Distributor ID: RedHatEnterpriseAS
Description: Red Hat Enterprise Linux AS release 4 (Nahant Update 1)
Release: 4
Codename: NahantUpdate1
[root@3.5.5Biz-46 ~]#
这个命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版。
2) 登录到linux执行cat /etc/redhat-release ,例如如下:
[root@3.5.5Biz-46 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 1)
[root@3.5.5Biz-46 ~]#
这种方式下可以直接看到具体的版本号,比如 AS4 Update 1
3)登录到linux执行rpm -q redhat-release ,例如如下
[root@3.5.5Biz-46 ~]# rpm -q redhat-release
redhat-release-4AS-2.4
[root@3.5.5Biz-46 ~]#
这种方式下可看到一个所谓的release号,比如上边的例子是2.4
这个release号和实际的版本之间存在一定的对应关系,如下:
redhat-release-3AS-1 -> Redhat Enterprise Linux AS 3
redhat-release-3AS-7.4 -> Redhat Enterprise Linux AS 3 Update 4
redhat-release-4AS-2 -> Redhat Enterprise Linux AS 4
redhat-release-4AS-2.4 -> Redhat Enterprise Linux AS 4 Update 1
redhat-release-4AS-3 -> Redhat Enterprise Linux AS 4 Update 2
redhat-release-4AS-4.1 -> Redhat Enterprise Linux AS 4 Update 3
redhat-release-4AS-5.5 -> Redhat Enterprise Linux AS 4 Update 4
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Excel中MODE函数的用法介绍
wps演示如何添加注释
![](https://img.aspxhome.com/file/2023/9/a170749_0s.jpg)
excel2003制作成绩条的教程
如何美化Windows10字体达到类似mac的效果?
![](https://img.aspxhome.com/file/2023/7/51087_0s.png)
Win10家庭版 Antimalware Service Executable占用内存过高怎么办?
![](https://img.aspxhome.com/file/2023/25/a218692_0s.png)
excel表格如何把相同的内容找出
如何修复“macOS 无法验证此应用程序没有恶意软件”
![](https://img.aspxhome.com/file/2023/2/a203952_0s.png)
excel表格怎么自动求样本的标准偏差?
![](https://img.aspxhome.com/file/2023/4/40154_0s.png)
excel对号怎么打?excel对号输入3种方法
![](https://img.aspxhome.com/file/2023/9/38509_0s.jpg)
在word里怎么给文字设置上下标呢?
![](https://img.aspxhome.com/file/2023/3/24953_0s.jpg)
excel表格做分区统计的方法是什么
n-Track Studio 如何录制MIDI轨道?
![](https://img.aspxhome.com/file/2023/4/a212554_0s.png)
安装Win8.1鼠标和键盘罢工停止工作怎么办
![](https://img.aspxhome.com/file/2023/29/a255935_0s.jpg)
yearfrac函数的使用方法
![](https://img.aspxhome.com/file/2023/3/a161443_0s.png)
wps怎么样求和
![](https://img.aspxhome.com/file/2023/8/a171098_0s.png)
WPS演示如何制作有质感的封面
Win10专业版显示此站点不安全怎么办?
![](https://img.aspxhome.com/file/2023/26/a223168_0s.png)
mac双系统与虚拟机如何设置有线网络连接
![](https://img.aspxhome.com/file/2023/5/a214775_0s.png)
iOS 15 新功能:在“健康”App 中共享和查看健康数据
![](https://img.aspxhome.com/file/2023/7/45647_0s.png)
Win7系统IE浏览器打开自动关闭如何解决?
![](https://img.aspxhome.com/file/2023/27/a232261_0s.jpg)