查看Linux内核及发行商版本命令

一、查看Linux内核版本命令(两种方法):

1. cat /proc/version

Linux version 3.10.0-327.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Thu Nov 19 22:10:57 UTC 2015


2. uname -a

Linux vm-prd-ccctd-ccctd-185-192.tuniu.org 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

 

二、查看Linux系统版本的命令(两种方法):

1. lsb_release -a

root@debian:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.8 (jessie)
Release: 8.8
Codename: jessie

 

2. cat /etc/redhat-release,这种方法只适合Redhat系的Linux:

CentOS Linux release 7.2.1511 (Core) 

 

posted @ 2018-05-20 22:09  一沙世界  阅读(487)  评论(0编辑  收藏  举报