View information of linux

  When using the Linux operating system, sometimes need to understand the system version information currently in use, especially when carried out in the operation and maintenance of server deployment and accurate system version information is essential to others       

 

 

View linux kernel version information:

  1. cat  /proc/version
    Linux version 3.10.0-514.26.2.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #1 SMP Tue Jul 4 15:04:05 UTC 2017

         2. uname -a

Linux dajiala_b 3:10 . 0 - 514.26 . 2 .el7.x86_64 # 1 SMP Thu 4  15 : 04 : 05 UTC 2017 x86_64 x86_64 x86_64 GNU / Linux

 

View Linux System version:

   1. lsb_release -a

LSB Version:    :core-4.1-amd64:core-4.1-noarch
Distributor ID:    CentOS
Description:    CentOS Linux release 7.2.1511 (Core) 
Release:    7.2.1511
Codename:    Core

This command applies to all Linux distributions, including RedHat, SUSE, Debian ... and other distributions.

   2. cat /etc/redhat-release

CentOS Linux release 7.2.1511 (Core)

This method is suitable only for Linux Redhat system

 

   3.cat /etc/issue

\S
Kernel \r on an \m

This order also applies to all Linux distributions

 

Guess you like

Origin www.cnblogs.com/xingxia/p/linux_info.html