Linux查看當前操作系統版本信息
cat /proc/version
Linux version 2.6.32-642.el6.x86_64 ( [email protected] ) ( gcc version 4.4.7 20120313 ( Red Hat 4.4.7-17) ( GCC) )
Linux查看版本當前操作系統內核信息
uname -a
Linux localhost.localdomain 2.6.32-642.el6.x86_64
linux查看版本當前操作系統發行信息
cat /etc/issue 或 cat /etc/centos-release
$ cat /etc/issue
CentOS release 6.8 ( Final)
Kernel \r on an \m
$ cat /etc/centos-release
CentOS release 6.8 ( Final)
Linux查看cpu相關信息,包括型號、主頻、內核信息等
cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 60
model name : Intel( R) Core( TM) i7-4710MQ CPU @ 2.50GHz
stepping : 3
microcode : 30
cpu MHz : 2501.000
cache size : 6144 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
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 mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc up arch_perfmon xtopology tsc_reliable nonstop_tsc 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 arat xsaveopt fsgsbase bmi1 avx2 smep bmi2 invpcid
bogomips : 5002.00
clflush size : 64
cache_alignment : 64
address sizes : 43 bits physical, 48 bits virtual
power management: