怎么查看linux版本_如何查看linux系统的版本
怎么查看linux系统
很多朋友都在想怎么查看linux系统?下面就来给大家介绍一下吧!
怎么查看linux版本_如何查看linux系统的版本
怎么查看linux版本_如何查看linux系统的版本
3、输入"cat/redhat-release-4AS-5.5 -> Redhat Enterprise Linux AS 4 Update 4etc/issue", 显示的是发行版本信息
4、l_release-a适用于所有的linux,会显示电脑版本、系统版本、id等信息。
本文章基于ThinkpRelease: 8.04adE15品牌、centos7系统撰写的。
如何查看ubuntu当前linux版本
这种方式下可看到一个所谓的release号,比如上边的例子是2.41,查看内核版本命令:
cat /proc/version
uname -rcat /etc/issue
man uname
2,查看linux版本:抄录如下:
1) 登录到执行 l_release -a ,即可列出所有版本信息,例如:
[root@3.5.5Biz-46 ~]# l_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 ,例如如下
redhat-release-4AS-2.4
[root@3.5.5Biz-46 ~]#
这个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
使用 l_release 命令也可以查看 Ubuntu 的版本号,与方法一相比,内容更为详细。
在终[root@3.5.5Biz-46 ~]# rpm -q redhat-release端中执行下列指令:
sudo l_release -a
将输出结果:
Distributor ID: Ubuntu
Description: Ubuntu 8.04
Codename: hardy
END
查看内核版本号
查看内核版本号的方法是:
打开一个终端,
输入命令:uname -r
这个应该通用
查看内核版本:
cat /proc/version
uname -rcat /etc/issue
man uname Linux介绍可查看《Linux就该这么学》。
linux怎么查看作系统信息
介绍怎么查看linu2、输入"cat/proc/version",说明正在运行的内核版本。x系统版本
在Linux命令行下:
查看CPU,输入:more /proc/cpu | grep "model nauname -ame"
或:grep "model name" /proc/cpu
查看内存,输入:grep MemTotal /proc/mem
或:free -m
查看linux版本,输入:more /etc/issue
查看内核版本,输入:uname -r
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系 836084111@qq.com 删除。