热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

linux怎么看系统版本-linux运维

linux查看系统版本的方法:1、使用“uname-a”查看Linux版本及内核信息;2、使用“catprocversion”查看操作系统版本信息;3、使用“lsb_release-da”查看等等。

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怎么看系统版本的详细内容,更多请关注 第一PHP社区 其它相关文章!


推荐阅读
author-avatar
zoudan的世界94129433
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有