Home  >  Article  >  Operation and Maintenance  >  How to view linux information

How to view linux information

(*-*)浩
(*-*)浩Original
2019-12-28 11:16:003855browse

How to view linux information

The so-called Linux version information here includes Linux kernel version information and Linux system version information.

1. Check the Linux kernel version information Enter cat /proc/version

[root@localhost ~]# cat /proc/version
Linux version 3.10.0-957.el7.x86_64 (mockbuild@x86-040.build.eng.bos.redhat.com) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Thu Oct 4 20:48:51 UTC 201

in the terminal. Method 2: Log in to Linux. Enter uname -a

[root@localhost ~]# uname -a
Linux localhost 3.10.0-957.el7.x86_64 #1 SMP Thu Oct 4 20:48:51 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

in the terminal. Method 3: Log in to Linux. , enter uname -r

[root@localhost ~]# uname -r
3.10.0-957.el7.x86_64

in the terminal 2. Check the Linux system version information

Method 1: Log in to Linux and enter cat / in the terminal etc/issue

[root@localhost ~]# cat /etc/issue
\SKernel \r on an \m

Method 2: Log in to Linux, enter cat /etc/redhat-release

[root@localhost ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.6 (Maipo)

Method 3: Log in to Linux , enter lsb_release -a

[root@localhost ~]# lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: RedHatEnterpriseServer
Description:    Red Hat Enterprise Linux Server release 7.6 (Maipo)
Release:        7.6
Codename:       Maip
in the terminal

The above is the detailed content of How to view linux information. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn