linux 版本三种常用解决方法(图)

原标题:”linux 版本三种常用方法”相关电脑问题教程分享。 – 来源:路由器之家。Linux是一套免费使用和自由传播的类Unix操作系统,是一个基于POSIX和UNIX的多用户、多任务、支持多线

亲,以下就是关于(linux 版本三种常用解决方法(图)),由“路由器之家”整理!

linux 版本三种常用解决方法(图)

原标题:"linux 版本三种常用方法"相关电脑问题教程分享。 – 来源:路由器之家。

  Linux是一套免费使用和自由传播的类Unix操作系统,是一个基于POSIX和UNIX的多用户、多任务、支持多线程和多CPU的操作系统。它能运行主要的UNIX工具软件、应用程序和网络协议。它支持32位和64位硬件。Linux继承了Unix以网络为核心的设计思想,是一个性能稳定的多用户网络操作系统。下面,路由器之家小编就来说说linux 版本三种常用方法。

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

  以上就是linux 版本三种常用方法

  相关内容推荐:

  linux关机命令功能键详解

以上就是关于-常见问题-(linux 版本三种常用解决方法(图))的教程!

本文来自投稿,不代表路由百科立场,如若转载,请注明出处:https://www.qh4321.com/117473.html

(0)

相关推荐