linux怎么看系统版本


本文摘自PHP中文网,作者angryTom,侵删。

linux怎么看系统版本

通用方法查看:

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

1

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查看当前操作系统版本信息)

1

2

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

1

2

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

Kernel /r on an /m

RedHat系列查看:

1、cat /etc/redhat-release

1

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

2、lsb_release -a

1

2

3

4

5

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

1

9.0

2、cat /etc/os-release

1

2

3

4

5

6

7

8

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

1

2

3

4

5

6

7

8

9

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怎么看系统版本的详细内容,更多文章请关注木庄网络博客

相关阅读 >>

Linux定时任务crontab命令详解

什么是Linux主机?

Linux的读音是什么

Linux deepin怎么卸载不用的旧内核

Linux中--prefix命令是什么意思?

Linux 安装 vmware tools 步骤

Linux 端口是什么

mac如何使用秘钥登录Linux服务器

源服务器访问目标服务器时出现异常如何抓包获取最原始的交互数据

Linux适合干什么?

更多相关阅读请进入《Linux》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...