1. Linux查看版本当前操作系统内核信息
# uname -a Linux nas1 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
2. Linux查看当前操作系统版本信息
# cat /proc/version Linux version 2.6.32-431.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Fri Nov 22 03:15:09 UTC 2013
3. Linux查看版本当前操作系统发行版信息
# cat /etc/issue CentOS release 6.5 (Final) Kernel \r on an \m
或者
# cat /etc/redhat-release CentOS release 6.5 (Final)
4. Linux查看cpu相关信息,包括型号、主频、内核信息等
# cat /proc/cpuinfo processor: 0 vendor_id: GenuineIntel cpu family: 6 model: 45 model name: Intel(R) Xeon(R) CPU E5-2403 0 @ 1.80GHz stepping: 7 cpu MHz: 1800.000 cache size: 10240 KB 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 syscall nx rdtscp lm constant_tsc up arch_perfmon pebs bts xtopology tsc_reliable nonstop_tsc aperfmperf unfair_spinlock pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm arat pln pts dtsbogomips: 3600.00 clflush size: 64 cache_alignment: 64 address sizes: 42 bits physical, 48 bits virtual power management:
5. Linux查看版本说明当前CPU运行在32bit模式下, 但不代表CPU不支持64bit
# getconf LONG_BIT 64
6. LSB信息
# lsb_release -a LSB Version::base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch Distributor ID:CentOS Description:CentOS release 6.5 (Final) Release:6.5 Codename:Final
7. 内存信息
# cat /proc/meminfo MemTotal: 1004412 kB MemFree: 122056 kB Buffers: 167600 kB Cached: 198112 kB SwapCached: 12652 kB Active: 303752 kB ......
时间: 2024-11-08 19:34:52