如何查看linux版本如何查看linux内核版本

版本 1

如何查看linux内核版本

.1.1 Linux版本Linux内核的版本号可以从源代码的顶层目录下的Makefile中看到,比如2.6.29.1内核的Makefile中:VERSION = 2PATCHLEVEL = 6SUBLEVEL = 29EXTRAVERSION = .1其中的“VERSION”和“PATCHLEVEL”组成主版本号,比如2.4、2.5、2.6等,稳定版本的德主版本号用偶数表示(比如2.6的内核),开发中的版本号用奇数表示(比如2.5),它是下一个稳定版本内核的前身。“SUBLEVEL”称为次版本号,它不分奇偶,顺序递增,每隔1~2个月发布一个稳定版本。“EXTRAVERSION”称为扩展版本号,它不分奇偶,顺序递增,每周发布几次扩展本版号。

如何查看linux系统版本 查看linux系统的位数

查看linux系统版本以及位数,用到的工具:xshell,步骤如下:
1. 登录到linux服务器。
2.执行以下命令: more?/proc/version返回如下参数: Linux?version?3.10.0-123.el7.x86_64?(builder@)?(?version?4.8.2?2 0140120?(Red?Hat?4.8.2-16)?(GCC)?)?#1?SMP?Mon?Jun?30?12:09:22?UTC?2014说明:linux version是版本号,x86_64表示是64位系统。 注意事项:示例是在centos下边执行操作返回的参数。

如何用Linux命令查看已安装的软件版本?

大多数命令加上-V选项或者--version选项,就会返回软件的版本信息。 用法示例: 查看Python软件的版本 $ python -
V 或者 python --version 对于Debian 及其衍生系统,可以使用aptitude命令查看软件的详细信息,包含软件的版本号、依赖、项目主页等信息。 用法示例: $ aptitude python

如何查看UNIX系统版本?

查看Linux版本:
1、登录到服务器执行 lsb_release -a ,即可列出所有版本信息,例如: chen@mylinuxserver:/proc> lsb_release -a。 LSB Version: core-2.0-noarch:core-3.0-noarch:core-2.0-ia32:core-3.0-ia32:graphics-2.0-ia32:graphics-2.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch。 Distributor ID: SUSE LINUX。 Description: SUSE LINUX Enterprise Server
9 (i586)。 Release:
9。 Codename: n/a。 注:这个命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版。
2、登录到linux执行cat /etc/issue,例如如下: chen@mylinuxserver:/proc> cat /etc/issue。 e to SUSE LINUX Enterprise Server
9 (i586) - Kernel (l)。
3、登录到linux执行cat /etc/redhat-release ,例如如下: chen@mylinuxserver:/proc> cat /etc/*release*。 LSB_VERSION="core-2.0-noarch:core-3.0-noarch:core-2.0-ia32:core-3.0-ia32"。 cat: /etc/lsb-release.d: 是一个目录。 SUSE LINUX Enterprise Server
9 (i586)。 VERSION =
9。 PATCHLEVEL =
3。 查看内核版本命令: chen@mylinuxserver:~> cat /proc/version。 Linux version 2.6.5-7.244-smp (geeko@buildhost) ( version 3.3.3 (SuSE Linux)) #
1 SMP Mon Dec 12 18:32:25 UTC 2005。

在linux下,怎么用命令来查看版本?


1,查看内核版本命令: cat /proc/version uname -a uname -rcat /etc/issue man uname
2,查看linux版本:抄录如下: 1) 登录到服务器执行 lsb_release -a ,即可列出所有版本信息,例如: [root@3.5.5Biz-46 ~]# lsb_release -a LSB Version: 1.3 Distributor ID: RedHatEnterpriseAS Descrīption: 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内核版本号 1:登录linux,在终端输入 cat /proc/version 2:登录linux,在终端输入 uname -a 即列出linux的内核版本号 。 3: 在Linux终端输入 unmae -a 即可查看linux的内核版本号。三种方法执行效果如下图所示:
二、查看linux版本信息 1:登录到linux服务器执行 lsb_release-a 命令,即可查看所有版本信息。 2:登录到linux执行 cat /etc/issue (切记cat后要空一格)即可看到版本信息

如何查看linux内核版本

命令行中查看:
1、查看内核版本命令: 1) cat /proc/version 2) uname -a 3) uname -r
2、查看发行版本命令 1) lsb_release -a 2) 用命令找到/etc目录下的issue文件release文件

标签: #系统 #如何将 #文件 #内核 #用户 #目录 #文件夹 #重启