linux查看软件版本 按键精灵编写脚本循环 - 电脑 - 【南平电脑网】_南平电脑维修_南平笔记本电脑维修_监控安装_市区上门维修
公司动态

linux查看软件版本 按键精灵编写脚本循环

摘要:如何用Linux命令查看已安装的软件版本Linux下如何查看版本信息, 包括位数、版本信息以及CPU内核信息、CPU具体型号等等,整个CPU信息一目了然。1、 uname -a (Linux查看版本...

发布日期:2020-08-25

linux查看软件版本

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

Linux下如何查看版本信息, 包括位数、版本信息以及CPU内核信息、CPU具体型号等等,整个CPU信息一目了然。

1、# uname -a (Linux查看版本当前操作系统内核信息)Linux localhost.localdomain 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 athlon i386 GNU/Linux2、# cat /proc/version (Linux查看当前操作系统版本信息)Linux version 2.4.20-8 (bhcompile@porky.devel.redhat.com)(gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 Thu Mar 13 17:54:28 EST 20033、# cat /etc/issue 或cat /etc/redhat-release(Linux查看版本当前操作系统发行版信息)Red Hat Linux release 9 (Shrike)

如何查看linux系统的版本号

一、查看Linux内核版本命令(两种方法):1、cat /proc/version[root@localhost ~]# cat /proc/versionLinux version 2.6.18-194.8.1.el5.centos.plus (mockbuild@builder17.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Wed Jul 7 11:50:45 EDT 20102、uname -a[root@localhost ~]# uname -aLinux 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 -aLSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarchDistributor ID: CentOSDescription: CentOS release 5.5 (Final)Release: 5.5Codename: Final这个命令适用于所有的Linux发行版,包括Redhat、SuSE、Debian…等发行版。

2、cat /etc/redhat-release,这种方法只适合Redhat系的Linux:[root@localhost ~]# cat /etc/redhat-releaseCentOS release 5.5 (Final)3、cat /etc/issue,此命令也适用于所有的Linux发行版。

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

看Linux版本信息的方法有哪些?

1. uname -a 2. cat /proc/version 3. cat /etc/issue 4. lsb_release -a 详解 lsb_release -a 登录到服务器执行 lsb_release -a ,即可列出所有版本信息,例如: 1. [root@3.5.5Biz-46 ~]# lsb_release -a 2. LSB Version: 1.3 3. Distributor ID: RedHatEnterpriseAS 4. Description: Red Hat Enterprise Linux AS release 4 (Nahant Update 1) 5. Release: 4 6. Codename: NahantUpdate1 7. [root@3.5.5Biz-46 ~]# 这个命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版。

如何在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) 登录到服务器执行 lsb_release -a ,即可列出所有版本信息,例如:[root@SOR_SYS ~]# lsb_release -a LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch Distributor ID: RedHatEnterpriseAS Description: Red Hat Enterprise Linux AS release 4 (Nahant Update 4) Release: 4 Codename: NahantUpdate4 [root@SOR_SYS ~]# 注:这个命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版。

2) 登录到linux执行cat /etc/issue,例如如下:[root@SOR_SYS ~]# cat /etc/issue Red Hat Enterprise Linux Server release 5.6 (Tikanga) Kernel \r on an \m [root@SOR_SYS ~]#3) 登录到linux执行cat /etc/redhat-release ,例如如下:[root@SOR_SYS ~]# cat /etc/redhat-release Red Hat Enterprise Linux AS release 4 (Nahant Update 4) [root@SOR_SYS ~]# 注:这种方式下可以直接看到具体的版本号,比如 AS4 Update 14)登录到linux执行rpm -q redhat-release ,例如如下:[root@SOR_SYS ~]# rpm -q redhat-release redhat-release-5Server-5.6.0.3 [root@SOR_SYS ~]# 注:这种方式下可看到一个所谓的release号,比如上边的例子是5 这个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有效5) [root@SOR_SYS ~]# file /bin/bash/bin/bash: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped [root@SOR_SYS ~]#6) [root@SOR_SYS ~]# file /bin/cat /bin/cat: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped [root@SOR_SYS ~]#