當前位置:首頁 » 操作系統 » 如何看linux版本

如何看linux版本

發布時間: 2022-08-10 11:37:26

① 怎麼查看linux版本

1.#uname -a 查看內核版本
Linux master.linux.com 2.6.32-358.el6.x86_64 #1 SMP Tue Jan 29 11:47:41 EST 2013 x86_64 x86_64 x86_64 GNU/Linux
2.# cat /etc/redhat-release 查看系統版本
Red Hat Enterprise Linux Server release 6.4
3.# cat /etc/issue 查看系統版本
Red Hat Enterprise Linux Server release 6.4
Kernel \r on an \m

② 如何查看linux 系統版本

如果想查看你的Linux系統是哪種Linux發行版,可以使用lsb_release -a命令,lsb_release -a命令不光可以列出是哪個發行版,還可以列出具體是第幾個版本。
如果是想查看Linux發行版所使用的內核版本信息、還有當前Linux發行版是32位還是64位,則使用uname -a命令。

③ 如何查看linux發行版版本信息

1
輸入"uname -a ",可顯示電腦以及操作系統的相關信息。
2
輸入"cat /proc/version",說明正在運行的內核版本。
3
輸入"cat /etc/issue", 顯示的是發行版本信息
4
lsb_release -a (適用於所有的linux,包括Redhat、SuSE、Debian等發行版,但是在debian下要安裝lsb)

④ 如何查看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、通常可以點任務欄上的終端軟體。

⑥ 如何查看linux系統的版本號

一、查看Linux內核版本命令(兩種方法):

1、cat /proc/version

[root@localhost ~]# cat /proc/version
Linux version 2.6.18-194.8.1.el5.centos.plus ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Wed Jul 7 11:50:45 EDT 2010

2、uname -a

[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-194.8.1.el5.centos.plus #1 SMP Wed Jul 7 11:50:45 EDT 2010 i686 i686 i386 GNU/Linux

二、查看Linux系統版本的命令(3種方法):

1、lsb_release -a,即可列出所有版本信息:

[root@localhost ~]# lsb_release -a
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description: CentOS release 5.5 (Final)
Release: 5.5
Codename: Final

這個命令適用於所有的Linux發行版,包括Redhat、SuSE、Debian…等發行版。

2、cat /etc/redhat-release,這種方法只適合Redhat系的Linux:

[root@localhost ~]# cat /etc/redhat-release
CentOS release 5.5 (Final)

3、cat /etc/issue,此命令也適用於所有的Linux發行版。

[root@localhost ~]# cat /etc/issue
CentOS release 5.5 (Final)
Kernel \r on an \m

⑦ 怎麼查詢linux操作系統版本

1. 查看內核版本命令:
chen@mylinuxserver:~> cat /proc/version
Linux version 2.6.5-7.244-smp (geeko@buildhost) (gcc version 3.3.3 (SuSE Linux)) #1 SMP Mon Dec 12 18:32:25 UTC 2005
/proc 目錄的作用?
chen@mylinuxserver:/proc> uname -a
Linux mylinuxserver 2.6.5-7.244-smp #1 SMP Mon Dec 12 18:32:25 UTC 2005 i686 i686 i386 GNU/Linux
chen@mylinuxserver:/proc> uname -r
2.6.5-7.244-smp
uname命令的作用?
2. 查看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
Welcome to SUSE LINUX Enterprise Server 9 (i586) - Kernel \r (\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
關於更多Linux的學習,請查閱書籍《linux就該這么學》。

⑧ linux怎麼看系統版本

輸入"uname -a ",可顯示電腦以及操作系統的相關信息。

Linux系統如何查看版本信息
輸入"cat /proc/version",說明正在運行的內核版本。

Linux系統如何查看版本信息
輸入"cat /etc/issue", 顯示的是發行版本信息

Linux系統如何查看版本信息
lsb_release -a (適用於所有的linux,包括Redhat、SuSE、Debian等發行版,但是在debian下要安裝lsb)

Linux系統如何查看版本信息

⑨ 如何查看linux系統版本

如何得知自己正在使用的linux是什麼版本呢,下面的幾種方法將給你帶來答案!

1. 查看內核版本命令:

1) [root@q1test01 ~]# cat /proc/version

Linux version 2.6.9-22.ELsmp ([email protected]) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 SMP Mon Sep 19 18:00:54 EDT 2005

2) [root@q1test01 ~]# uname -a

Linux q1test01 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:00:54 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux

3) [root@q1test01 ~]# uname -r

2.6.9-22.ELsmp

2. 查看linux版本:

1) 登錄到伺服器執行 lsb_release -a ,即可列出所有版本信息,例如:

[[email protected] ~]# [root@q1test01 ~]# lsb_release -a

LSB Version: :core-3.0-amd64:core-3.0-ia32:core-3.0-noarch:graphics-3.0-amd64:graphics-3.0-

ia32:graphics-3.0-noarch

Distributor ID: RedHatEnterpriseAS

Description: Red Hat Enterprise Linux AS release 4 (Nahant Update 2)

Release: 4

Codename: NahantUpdate2

注:這個命令適用於所有的linux,包括Redhat、SuSE、Debian等發行版。

2) 登錄到linux執行cat /etc/issue,例如如下:

[root@q1test01 ~]# cat /etc/issue

Red Hat Enterprise Linux AS release 4 (Nahant Update 2)

Kernel \r on an \m

3) 登錄到linux執行cat /etc/redhat-release ,例如如下:

[root@q1test01 ~]# cat /etc/redhat-release

Red Hat Enterprise Linux AS release 4 (Nahant Update 2)

注:這種方式下可以直接看到具體的版本號,比如 AS4 Update 1

4)登錄到linux執行rpm -q redhat-release ,例如如下:

[root@q1test01 ~]# rpm -q redhat-release

redhat-release-4AS-3

注:這種方式下可看到一個所謂的release號,比如上邊的例子是3

這個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

另:第3)、4)兩種方法只對Redhat Linux有效。

了解更多開源相關,去LUPA社區看看吧。

熱點內容
寶馬x5買什麼配置性價比高 發布:2024-04-24 06:45:22 瀏覽:849
最小的編程語言 發布:2024-04-24 06:44:16 瀏覽:816
自動發朋友圈腳本 發布:2024-04-24 06:40:32 瀏覽:153
最早存儲盤 發布:2024-04-24 06:39:54 瀏覽:943
編程題優惠券 發布:2024-04-24 06:29:46 瀏覽:998
在線編程招聘 發布:2024-04-24 06:23:11 瀏覽:68
svn緩存文件 發布:2024-04-24 06:09:53 瀏覽:139
現在的我的世界伺服器推薦 發布:2024-04-24 05:46:39 瀏覽:151
安卓手機怎麼調節字體顏色 發布:2024-04-24 05:43:14 瀏覽:411
金蝶軟體如何下載加密伺服器 發布:2024-04-24 05:34:21 瀏覽:338