查看linux系统版本信息的方法

本篇文章给大家分享的是有关查看linux系统版本信息的方法,小编觉得挺实用的,因此分享给大家学习,希望大家阅读完这篇文章后可以有所收获,话不多说,跟着小编一起来看看吧。

创新互联-专业网站定制、快速模板网站建设、高性价比福州网站开发、企业建站全套包干低至880元,成熟完善的模板库,直接使用。一站式福州网站制作公司更省心,省钱,快速模板网站建设找我们,业务覆盖福州地区。费用合理售后完善,十载实体公司更值得信赖。

通用方法查看:

1、uname -a   (Linux查看版本当前操作系统内核信息)

Linux localhost.localdomain 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 athlon i386 GNU/Linux

2、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 2003

3、cat /etc/issue

Red Hat Enterprise Linux AS release 4 (Nahant Update 8)
Kernel /r on an /m

RedHat系列查看:

1、cat /etc/redhat-release

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

2、lsb_release -a

LSB Version: :core-3.0-ia32:core-3.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch
Distributor ID: RedHatEnterpriseAS
Description: Red Hat Enterprise Linux AS release 4 (Nahant Update 8)
Release: 4
Codename: NahantUpdate8

Debian系列查看:

1、cat /etc/debian_version

9.0

2、cat /etc/os-release

PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

3、hostnamectl

   Static hostname: debian
         Icon name: computer-vm
           Chassis: vm
        Machine ID: 6866ec1d654b4a2ea52d591dc0146d82
           Boot ID: 51bfbc1e197b4d378e95073da0df0288
    Virtualization: xen
  Operating System: Debian GNU/Linux 9 (stretch)
            Kernel: Linux 4.9.0-1-amd64
      Architecture: x86-64

以上就是查看linux系统版本信息的方法,小编相信有部分知识点可能是我们日常工作会见到或用到的。希望你能通过这篇文章学到更多知识。更多详情敬请关注创新互联行业资讯频道。


网页标题:查看linux系统版本信息的方法
转载源于:http://bzwzjz.com/article/pgsehj.html

其他资讯

Copyright © 2007-2020 广东宝晨空调科技有限公司 All Rights Reserved 粤ICP备2022107769号
友情链接: 成都企业网站设计 成都网站设计 成都网站建设 成都网站建设 重庆网站设计 成都网站建设 高端网站设计 成都网站制作 手机网站制作 成都网站设计 定制网站建设 app网站建设 成都响应式网站建设公司 LED网站设计方案 网站建设 成都网站建设 成都网站制作 移动网站建设 企业网站建设 泸州网站建设 品牌网站建设 成都网站制作