How to check linux version

(*-*)浩
Release: 2019-12-04 14:09:07
Original
3553 people have browsed it

How to check linux version

How to check the version information under Linux, including the number of bits, version information, CPU core information, CPU specific model, etc. The entire CPU information is clear at a glance.

1,#UNAME -A (Linux View version of the current operating system kernel information) (Recommended learning: Linux tutorial )##

[hadoop@admin01 ~]$ uname -a
Linux admin01 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Copy after login

2, # cat /proc/version (Linux to view the current operating system version information)

[hadoop@admin01 ~]$ cat /proc/version 
Linux version 2.6.32-358.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Fri Feb 22 00:31:26 UTC 2013
Copy after login

3, # cat /etc/issue or cat /etc/redhat-release (Linux to view Version current operating system release version information)

[hadoop@admin01 ~]$ cat /etc/issue
CentOS release 6.4 (Final)
Kernel \r on an \m

[hadoop@admin01 ~]$ cat /etc/redhat-release
CentOS release 6.4 (Final)
Copy after login

4, # cat /proc/cpuinfo (Linux to view cpu related information, including model, clock speed, kernel information, etc.)

[hadoop@admin01 ~]$ cat /proc/cpuinfo
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 60
model name	: Intel(R) Core(TM) i5-4200H CPU @ 2.80GHz
stepping	: 3
cpu MHz		: 2793.544
cache size	: 3072 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 2
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts xtopology tsc_reliable nonstop_tsc aperfmperf unfair_spinlock pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm ida arat epb xsaveopt pln pts dts fsgsbase bmi1 avx2 smep bmi2 invpcid
bogomips	: 5587.08
clflush size	: 64
cache_alignment	: 64
address sizes	: 42 bits physical, 48 bits virtual
power management:
Copy after login

5, # getconf LONG_BIT (Linux check the version description. The current CPU is running in 32bit mode, but it does not mean that the CPU does not support 64bit)

[hadoop@admin01 ~]$  getconf LONG_BIT
64
Copy after login

6, # lsb_release -a (query system version)

[root@Rocky opt]# lsb_release -a
LSB Version:	:core-4.1-amd64:core-4.1-noarch
Distributor ID:	CentOS
Description:	CentOS Linux release 7.4.1708 (Core) 
Release:	7.4.1708
Codename:	Cor
Copy after login

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template