導航:首頁 > 程序命令 > linux系統版本查看命令

linux系統版本查看命令

發布時間:2022-08-04 20:00:11

linux如何查看系統版本

我告訴你幾個方法,我使用的是redhat

  1. cat /etc/issue //查看linux的版本信息

  2. lsb_release -a //查看LSB本身的版本信息

  3. uname -r //Kernel版本

這三個可以解決你的問題了

❷ 怎麼查詢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版本

查看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,查看內核版本命令:
cat /proc/versionuname -auname -rcat /etc/issueman uname2,查看linux版本:抄錄如下:1) 登錄到伺服器執行 lsb_release -a ,即可列出所有版本信息,例如:
[[email protected] ~]# lsb_release -aLSB Version: 1.3Distributor ID: RedHatEnterpriseASDescrīption: Red Hat Enterprise Linux AS release 4 (Nahant Update 1)Release: 4Codename: NahantUpdate1[[email protected] ~]#
這個命令適用於所有的linux,包括Redhat、SuSE、Debian等發行版。
2) 登錄到linux執行cat /etc/redhat-release ,例如如下:[[email protected] ~]# cat /etc/redhat-releaseRed Hat Enterprise Linux AS release 4 (Nahant Update 1)[[email protected] ~]#
這種方式下可以直接看到具體的版本號,比如 AS4 Update 1
3)登錄到linux執行rpm -q redhat-release ,例如如下
[[email protected] ~]# rpm -q redhat-releaseredhat-release-4AS-2.4[[email protected] ~]#
這種方式下可看到一個所謂的release號,比如上邊的例子是2.4這個release號和實際的版本之間存在一定的對應關系,如下:
redhat-release-3AS-1 -> Redhat Enterprise Linux AS 3redhat-release-3AS-7.4 -> Redhat Enterprise Linux AS 3 Update 4redhat-release-4AS-2 -> Redhat Enterprise Linux AS 4redhat-release-4AS-2.4 -> Redhat Enterprise Linux AS 4 Update 1redhat-release-4AS-3 -> Redhat Enterprise Linux AS 4 Update 2redhat-release-4AS-4.1 -> Redhat Enterprise Linux AS 4 Update 3redhat-release-4AS-5.5 -> Redhat Enterprise Linux AS 4 Update 4

❺ 怎麼查看linux操作系統版本

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

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

[root@localhost~]#lsb_release-a
LSBVersion::core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
DistributorID:CentOS
Description:CentOSrelease5.5(Final)
Release:5.5
Codename:Final

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

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

[root@localhost~]#cat/etc/redhat-release
CentOSrelease5.5(Final)

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

[root@localhost~]#cat/etc/issue
CentOSrelease5.5(Final)
Kernel onanm

❻ 如何查看linux版本

需要准備的材料分別是:電腦、linux連接工具。

1、首先連接上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] ~]# 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
[[email protected] ~]#

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

2) 登錄到linux執行cat /etc/redhat-release ,例如如下:
[[email protected] ~]# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 1)
[[email protected] ~]#

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

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

[[email protected] ~]# rpm -q redhat-release
redhat-release-4AS-2.4
[[email protected] ~]#

這種方式下可看到一個所謂的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

注意:第(2)(3)兩種方法只對Redhat Linux有效

❽ linux 怎麼看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系統的版本號

一、查看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系統版本查看命令相關的資料

熱點內容
資料庫查詢系統源碼 瀏覽:617
php5314 瀏覽:358
完美國際安裝到哪個文件夾 瀏覽:668
什麼app可以掃一掃做題 瀏覽:540
程序員編碼論壇 瀏覽:923
淘點是什麼app 瀏覽:660
中國高等植物pdf 瀏覽:453
51單片機時間 瀏覽:182
後台如何獲取伺服器ip 瀏覽:267
單片機流水燈程序c語言 瀏覽:235
程序員第二職業掙錢 瀏覽:239
運行里怎麼輸入伺服器路徑 瀏覽:841
pythonstepwise 瀏覽:509
劉一男詞彙速記指南pdf 瀏覽:64
php認證級別 瀏覽:368
方舟編譯啥時候推送 瀏覽:1011
php手機驗證碼生成 瀏覽:676
哲學思維pdf 瀏覽:15
凌達壓縮機有限公司招聘 瀏覽:534
weblogic命令部署 瀏覽:38