1. View current operating system kernel information
uname-a$ uname-a
Linux vm-web 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 x86_64 x86_64 gnu/linux
2. View current operating system version information
cat/proc/version$ cat/proc/versionLinux version 3.10.0-693.21.1.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5- (GCC)) #1 SMP Wed Mar 7 19:03:37 UTC 2018
3. View current operating system release information
cat/etc/issue or cat/etc/redhat-release $ cat/etc/issue\sKernel \ r on an \m $ cat/etc/redhat-releaseCentOS Linux release 7.4.1708 (Core)
4. View CPU related information, including model number, main frequency, kernel information, etc.
Cat/proc/cpuinfo$ cat/proc/cpuinfoprocessor:0Vendor_id:genuineintelCPU Family:6model:45Model Name:intel (R) Xeon (r) CPU e5-2660 0 @ 2.20GHzStepping:7microcode:0xffffffffCPU mhz:2199.998Cache size:20480 KBPhysical id:0Siblings:2Core id:0CPU Cores:2apicid:0Initial apicid:0Fpu:yesFpu_exception:yescpuid level:13Wp:yesflags:fpu vme de PSE TSC MSR PAE MCE cx8 APIC Sep MTRR PGE MCA cmov Pat PSE36 Clflush MMX FXSR SSE SSE2 SS HT Syscall NX PDPE1GB rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt AES Xsave AVX hypervisor lahf_lm xsaveoptbogomips:4399.99Clflush size:64cache_alignment:64address sizes:44 bits physical, bits virtualPower Management: processor:1Vendor_id:genuineintelCPU Family:6model:45Model Name:intel (R) Xeon (r) CPU e5-2660 0 @ 2.20GHzStepping:7microcode:0xffffffffCPU mhz:2199.998Cache size:20480 KBPhysical id:0Siblings:2Core Id:1CPU Cores:2apicid:1Initial apicid:1Fpu:yesFpu_exception:yescpuid level:13Wp:yesflags:fpu vme de PSE TSC MSR PAE MCE cx8 APIC Sep MTRR PGE MCA cmov Pat PSE36 Clflush MMX FXSR SSE SSE2 SS HT Syscall NX PDPE1GB rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt AES Xsave AVX hypervisor lahf_lm xsaveoptbogomips:4399.99Clflush size:64cache_alignment:64address sizes:44 bits physical, bits virtualPower Management:
5. List all version information
lsb_release-a$ lsb_release-a-bash:lsb_release:command not foundCommand not found instructions do not install Lsb_realease, you can execute the commands yum install-y redhat-lsb install Lsb_realease, after the installation is complete, the version information is as follows:$ lsb_release-aLSB 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-noarchDistributor Id:centosdescription:centos Linux release 7.4.1708 (Core)release:7.4.1708Codename:core
How Linux systems View version information